Windows Phone 8 Background Task with notifications

2020-03-30 03:35发布

I have an app that checks the results of matches in real time.

I want to be able to poll the server every minute to see if there has been any updates on the match. Is this possible, or do my users need to keep the app open to get live results?

3条回答
倾城 Initia
2楼-- · 2020-03-30 04:23

Primarily you should consider push notifications.

Background mode for location services is the alternative. Maybe it can work during a game. It does drain battery thou.

查看更多
▲ chillily
3楼-- · 2020-03-30 04:30

I know whatsapp uses a hack to do this, using the audio sdk. You could try to see if that works for you. Here is an example of the audio sdk http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202978(v=vs.105).aspx

查看更多
时光不老,我们不散
4楼-- · 2020-03-30 04:34

You'll not be allowed to do any form of real-time polling in a background task on Windows Phone.

However, if you keep your application open in the foreground, you can do all the polling you like.

查看更多
登录 后发表回答