Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When a user updates an iOS app, does application:didFinishLaunchingWithOptions: get called?

Tags:

ios

I've looked at the docs but am still unsure. Will application:didFinishLaunchingWithOptions: get called again after the user updates their app from the App Store and then launches the app again? As I understand it, this method only gets called on first launch and then again if the user kills the app. But what about after an update from the App Store?

like image 719
Josh Brown Avatar asked Oct 02 '11 18:10

Josh Brown


People also ask

When applicationWillEnterForeground is called?

applicationWillEnterForeground: is called after application: didFinishLaunchingWithOptions : or if your app becomes active again after receiving a phone call or other system interruption. applicationDidBecomeActive: is called after applicationWillEnterForeground: to finish up the transition to the foreground.

What is the use of application willFinishLaunchingWithOptions and application didFinishLaunchingWithOptions?

application:didFinishLaunchingWithOptions:Tells the delegate that the launch process is almost done and the app is almost ready to run. So after having the event application:willFinishLaunchingWithOptions, the next event application:didFinishLaunchingWithOptions will be fired.

What is didFinishLaunchingWithOptions?

So to answer your question, didFinishLaunchingWithOptions is a method/function, not an "argument". The system may pass in a dictionary with information about how the app was launched. (From a local notification, a request to open a file, a Core Location region notification, etc.) The Xcode docs have more information.

What happen if I return false in didFinishLaunchingWithOptions?

If either method returns false , the URL is not handled. If you do not implement one of the methods, only the return value of the implemented method is considered.


1 Answers

According to me it is definitely called again. What if your update brings a new implementation right in the mentioned method? So it have to be called.

like image 169
Vanya Avatar answered Oct 23 '22 17:10

Vanya