According to Apple's official documentation, if one sends a "silent notification", i.e. a notification with content-available: 1
we have
For background download apps: A push notification arrives for an app and the payload of the notification contains the content-available key with a value of 1. The system wakes the app at opportunistic moments to begin downloading new content. For apps downloading content in the background using the NSURLSession class, all tasks associated with that session object either completed successfully or received an error. A download initiated by a Newsstand app finishes.
also it says in that document
Apps are typically woken up at roughly the same time that the user sees the notification but that still gives you more time than you might have otherwise.
How to interpret this? If an app is submitted with a UIBackgroundMode
of remote-notification
in the plist, does this mean that the app is actually launched in the background if we send a remote notification? Even if the user has restarted the iOS device, and didn't launch our app? Even if the user force-quit our app before?
My question is, how reliable is the above expectation? Has anyone had direct experience with and tested this, and it is true 100% of the time in your experience?