Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Backgrounding works on the simulator but not on a device

$
0
0

Greetings,

I have an application that downloads data from a server. I have set it up so that the sync runs in a background task so that it can finish if the user navigates away from the application. This is working great when I deploy and test using the Simulator. I can start the sync, navigate away, come back and the sync completes successfully. I also have some test code in the DidEnterBackground event that fires as well. The problem is that when I deploy to an actual device to test the functionality it isn't working. When I navigate away from the app when a sync is running and come back the app is frozen and the screen that is showing is actually one that I was on previously. Eventually the app will just crash with no exceptions thrown. Also, the test code that I have in the DidEnterBackground event never fires on the device.

Any thoughts or suggestions would be appreciated, I am very close to a deadline to get this submitted to Apple and I need to get this resolved.

Thanks,

Greg


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>