I am updating my application in the new local notification system. Everything works fine until I set the notification in the application delegate didFinishLaunchingWithOptions(notifs planned and launched, and delegate methods willPresent, and didReceivecalled when they should).
However, I am actually working on a Cordova plugin, so I do not want any code with the plugin to be installed in AppDelegate.
Through NotificationCenter.default.addObserver, I registered for a notification when it is sent NSNotification.Name.UIApplicationDidFinishLaunching, but the documentation on iOS 10 states that the delegate must be installed before , the call didFinishLaunchingWithOptionsends and they literally mean it: it stops working.
Unfortunately, although there is application(_:willFinishLaunchingWithOptions:)no NSNotification.Name.UIApplicationWillFinishLaunching, therefore, there seems to be no way to execute the code before , the application terminates the launch through NotificationCenter ...
Anyone else run into this issue?
source
share