DELEGATE METHODS CALLED WHEN OPENING APP

 Jigar M 
Aug 29, 2017 · 1 min read

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


)

 Jigar M 

Written by

• Xamarin + iOS + Swift + MvvmCross + Forms

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade