This is a follow-up question to How to check launchOptions in Swift? - I got my app to launch successfully without crashing, but I can\'t seem to correctly detect when the app i
LaunchOptions
will be nil if you launch the application directly. The code will be running if you launch the application through the notifications rather than launch the application directly.
If you launch the application directly, then you need some other ways to solve this. Like use the time of the LocalNotification
and the current time, and decide which view to show.