BackgroundTask Conditions Bug

andy123456

Senior Member
Feb 20, 2009
66
0
0
I have a very strange issue in my wp8.1 store app. Im running a BackgroundTask every hour. I have set a condition to run only when wifi is available. This works, but if i disconnect wifi, enable mobile data connection, and after some hours re enable wifi, the BackgroundTask diesnt run anymore. What can this be?



Greez
 

andy123456

Senior Member
Feb 20, 2009
66
0
0
But there are many other apps, which are using background tasks. The internet connection required condition is there to address this i think?
 

sensboston

Recognized Developer
Nov 18, 2009
2,142
797
193
Boston, MA
By the way, what kind of the background download task are you talking about? The "old" way, by using Microsoft.Phone.BackgroundTransfer or a new one, by using Windows.Networking.BackgroundTransfer?
I may recommend you to use a new way; you also may try this sample to be sure that it works as you need...
 

sensboston

Recognized Developer
Nov 18, 2009
2,142
797
193
Boston, MA
andy123456, sorry I was confused 'cause you've mentioned WiFi/cell data...
And I agree with snickler: if you want to get some help from xda members, please prepare some code snippets or - better - a complete project/solution to prove your words. Nobody will do it for you...
 

andy123456

Senior Member
Feb 20, 2009
66
0
0
Sorry for the late answer. I figured it out and now i have a new question. The problem seems to be my lumia1520. On my second device, lumia530 which i use for developing only, all works fine without any problem. I have reinstalled my app but now the background task does not fire anymore. It seems to "hang" or so. Is there a limitation of background apps in wp8.1?
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone