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