What does it mean to put something in my application didFinishLaunchingWithOptions method:. And how do I do it in Swift?
There is a boilerplate method provided in your iOS project's AppDelegate file defined as
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// Override point for customization after application launch. Here you can out the code you want.
return true
}
If you want to handle cases such as if app is opened by a URL or by remote notification then you might want to put your code before return.
If the app can handle the url then keep the return value true otherwise false. In case of a push notification, the return value would anyway be ignored.
Hope this would help.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With