I'm monitoring significant location updates via CLLocationManager. When the app is killed and there is a location event, both App Delegate and Scene Delegate are being launched in the background appropriately. But UIApplication.LaunchOptionsKey.location is nil in the launchOptions
According to the Apple documentation:
For a scene-based app, examine the options that UIKit passes to the application(_:configurationForConnecting:options:) method to determine why it created your scene.
However, the connectionOptions in the SceneDelegate does not have an appropriate alternative for the location key.
How do I know my app was launched from a location event?
iOS Version: 14.4.2
try this function when application is killed and notification will be tapped this function is called