Previously, when using AppDelegate, I was able to check the app’s launch options (launchOptions) to determine cases such as:
- Location updates (UIApplication.LaunchOptionsKey.location)
- Background push notifications (UIApplication.LaunchOptionsKey.remoteNotification)
However, after migrating to the SceneDelegate approach, launchOptions is no longer available — it always returns nil.
In my app, I need to branch the code depending on the launch options, but I can’t find a way to achieve this in the SceneDelegate environment.
👉 Is there a way to access launch options in SceneDelegate, similar to how it worked in AppDelegate? Or, if that’s no longer possible, what would be the proper alternative approach?
Any guidance would be greatly appreciated.