Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does applicationDidFinishLaunching: get called when application is updated and launched first time?

Is applicationDidFinishLaunching guaranteed to be called after application is updated?
(when user first launches the updated version.)

In other words, the old version gets killed if it were running in background mode in update process?

like image 374
eugene Avatar asked Oct 16 '11 16:10

eugene


People also ask

What happen if I return false in didFinishLaunchingWithOptions?

Return Value false if the app cannot handle the URL resource or continue a user activity, otherwise return true . The return value is ignored if the app is launched as a result of a remote notification.

What is the use of application Willfinishlaunchingwithoptions and application didFinishLaunchingWithOptions?

Discussion. Use this method (and the corresponding application(_:didFinishLaunchingWithOptions:) method) to initialize your app and prepare it to run. This method is called after your app has been launched and its main storyboard or nib file has been loaded, but before your app's state has been restored.

What is didFinishLaunchingWithOptions?

application:didFinishLaunchingWithOptions: is part of the UIApplicationDelegate protocol, which is responsible with handling different changes over your application state. You can find out more about this method and about the app delegate protocol in the Apple documentation from here.


1 Answers

Yes. The updater will kill your app before upgrading if it is backgrounded. This needs to happen since updates can often involve locked files and database migrations.

like image 125
memmons Avatar answered Oct 10 '22 07:10

memmons