I'm using a deep linking in my application and using this code in my SceneDelegate
to segue to a view controller.
func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) {
for context in URLContexts {
print("url: \(context.url.absoluteURL)")
print("scheme: \(context.url.scheme ?? "")")
print("host: \(context.url.host ?? "")")
print("path: \(context.url.path)")
print("query: \(context.url.query ?? "")")
print("components: \(context.url.pathComponents)")
}
window?.rootViewController?.performSegue(withIdentifier: "splashToCreateNewPassword", sender: nil)
}
It's working perfectly when app is already open in the background, but when user closes the app, it wont work. it just opens the first screen of the app.