What happens to an ephemeral NSURLSession
of type data task when an app switches from the foreground or iOS looses network connectivity?
In particular, will its NSURLSessionDelegate
be notified, or do I have to observe at the level of UIApplicationWillResignActiveNotification
(as well as UIApplicationWillTerminateNotification
) and kReachabilityChangedNotification
respectively, if I don't want the NSURLSession
to disappear "silently".