imagine an app uses background Bluetooth services and gets woken into the background from the terminated state. now while it’s running in the background then…
Situation 1: the user taps a message notification to launch the app into the foreground.
does iOS call
willFinishLaunchingWithOptions:? it must, otherwise there’s no way to deliver the
UIApplicationLaunchOptionsRemoteNotificationKey to the application. but does this involve terminating the running backgrounded app and then restarting it? or calling this method on an already running app?
Situation 2: the user taps the app icon to launch the app into foreground
i could imagine iOS just calling
applicationWillEnterForeground here. but maybe it terminates and reboots the app?