DELEGATE METHODS CALLED WHEN OPENING APP
Our testing for iOS 10 revealed the following sequences of lifecycle methods for the various cases:
DELEGATE METHODS CALLED WHEN OPENING APP :
==============
1. Opening app when system killed or user killed :
=> didFinishLaunchingWithOptions
=> applicationDidBecomeActive
2. Opening app when backgrounded :
=> applicationWillEnterForeground
=> applicationDidBecomeActive
DELEGATE METHODS WHEN OPENING PUSH :
==============
1. Opening push when system killed :
=>[receiving push causes didFinishLaunchingWithOptions (with options) and
=> didReceiveRemoteNotification:background]
=> applicationWillEnterForeground
=> didReceiveRemoteNotification:inactive
=> applicationDidBecomeActive
2. Opening push when user killed :
=> didFinishLaunchingWithOptions (with options)
=> didReceiveRemoteNotification:inactive [only completionHandler version]
=> applicationDidBecomeActive
3. Opening push when backgrounded :
=> [receiving push causes didReceiveRemoteNotification:background]
=> applicationWillEnterForeground
=> didReceiveRemoteNotification:inactive
=> applicationDidBecomeActive
