Question

I'm working on my presentation about Windows Phone 8 and I'm wondering about multitasking.

I've read about scheduled task types and one of them is "PeriodicTask", but it fires only once about 30 minutes.

Then Skype crossed my mind - how skype calls work? How it is possible, that Windows Phone intercepts a call, when application works in the background. Consider that it's impossible to have continuously checking in the background.

Is it somehow done by Microsoft or can regular developer achieve something like this? I think, that it's some kind of cooperation between Skype and Microsoft, because as far as I know showing calls is impossible to do by a regular application.

So my guess is that call is a push notification, which Windows Phone receives and shows a calling user.

EDIT:
The only applications which can execute tasks more frequently than ~30 minutes are these with location tracking: Execute task even in the background

Était-ce utile?

La solution

It's possible because of VoIP API available on Windows Phone 8. It works on notifications, so you don't have to check if there is an incoming call - your app will be notified about one by the system.

Read more on MSDN: VoIP apps for Windows Phone 8.

Btw. there is no VoIP API on WP7/WP7.5 and that's why Skype on these systems works just terrible.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top