Monday, 28 October 2013

Windows Phone exception of type 'System.Net.WebException' was thrown

That's normal, the default behavior on Windows Phone when locking the screen is to put the app in a dormant state in order to reduce power consumption

If you want to override that behavior, you should use the following code:


"PhoneApplicationService.Current.ApplicationIdleDetectionMode = IdleDetectionMode.Disabled;"

Your app will be allowed to execude code even when the phone is locked.

No comments:

Post a Comment