I want to track the app launch source.
I check UIApplicationLaunchOptionsURLKey in application:didFinishLaunchingWithOptions: to know how the app be launched
but i don't know the value of UIApplicationLaunchOptionsURLKey when app is launched from app store.
Does anyone know?
how i track launch source:
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
if let launchOptions = launchOptions {
if let url = launchOptions[UIApplicationLaunchOptionsKey.url] {
//wake from other app
//the problem is i don't know the value of "url"
}
} else {
//wake from desktop
}
}