Skip to content

Instantly share code, notes, and snippets.

@yabenatti
Created August 23, 2017 17:40
Show Gist options
  • Save yabenatti/9c7978a8b0e90e8b20cd0cacd6d08467 to your computer and use it in GitHub Desktop.
Save yabenatti/9c7978a8b0e90e8b20cd0cacd6d08467 to your computer and use it in GitHub Desktop.
App Delegate Methods When Opening the App
DELEGATE METHODS CALLED WHEN OPENING APP
Opening app when system killed or user killed
didFinishLaunchingWithOptions
applicationDidBecomeActive
Opening app when backgrounded
applicationWillEnterForeground
applicationDidBecomeActive
DELEGATE METHODS WHEN OPENING PUSH
Opening push when system killed
[receiving push causes didFinishLaunchingWithOptions (with options) and didReceiveRemoteNotification:background]
applicationWillEnterForeground
didReceiveRemoteNotification:inactive
applicationDidBecomeActive
Opening push when user killed
didFinishLaunchingWithOptions (with options)
didReceiveRemoteNotification:inactive [only completionHandler version]
applicationDidBecomeActive
Opening push when backgrounded
[receiving push causes didReceiveRemoteNotification:background]
applicationWillEnterForeground
didReceiveRemoteNotification:inactive
applicationDidBecomeActive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment