简体   繁体   中英

Run background agent on network connection availability change

I have noticed, that some wp8 apps (e-mail app etc.) updates their live tiles immediately when internet connection is available. Is there any way how to achieve same thing without push notifications using event (Microsoft.Phone.Net.NetworkInformation.NetworkStatusChanged)? I know that there are Periodic tasks and Resource intensive tasks, but they run only once per 30 minutes. Background agent downloads small amount of data, and show notification if data are not equal with data from foreground app.

There is no way on WP8, how to trigger update of your app Tile when network connection is available again, sorry. You just need to trust the OS that it will start your PeriodicTask on regular basis.

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