Hello,
I'm trying to test a simple background download (using NSURLSession with backgroundSessionConfiguration).
There is a sample call SimpleBackgroundTransfer which is usefull but I would like to test this specific api:
- (void)application:(UIApplication *)application handleEventsForBackgroundURLSession:(NSString *)identifier completionHandler:(void (^)())completionHandlerThis method is called after iOS automatically relaunches the app, when the app is no longer running.
In the simulator, I can force quit my app but in my comprehension all the background downloads are then stopped, as the app has been quit by an user action. To test application:(UIApplication *)application handleEventsForBackgroundURLSession:, I need to put my app in suspended state but I don't see an obvious way to do this, either in the Simulator or on a device.
Thanks for the help / any advices,
Jc