I understand didFinishLaunchingWithOptions
returns UIApplicationLaunchOptionsURLKey
when launching my app from another application.
I also understand that openURL:sourceApplication
returns a URL passed when calling my app from another application, doing so in both cases of launching the app and returning from background.
Since openURL:sourceApplication
seems to always be called, it seems most logical to place all logic there - It seems strange that didFinishLaunchingWithOptions
would contain the UIApplicationLaunchOptionsURLKey
at all to begin with?
My question is: In which method should I place the functionality of handling the URL?
What is the best practice?