简体   繁体   中英

Windows Phone 8 Background Task with notifications

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?

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.

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM