Skip to content
This repository has been archived by the owner on Aug 19, 2020. It is now read-only.

application:openURL:options: not called after deeplink #12

Open
edwinps opened this issue Oct 23, 2019 · 0 comments
Open

application:openURL:options: not called after deeplink #12

edwinps opened this issue Oct 23, 2019 · 0 comments

Comments

@edwinps
Copy link

edwinps commented Oct 23, 2019

` func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
....
Accengage.start()
UNUserNotificationCenter.current()
.requestAuthorization(options: [.alert, .sound, .badge]) {
granted, error in
if granted {
DispatchQueue.main.async(execute: {
Accengage.push()?.registerForUserNotifications(options: [.notificationOptionSound, .notificationOptionAlert, .notificationOptionBadge, .notificationOptionCarPlay, .notificationOptionProvisional, .authorizationOptionProvidesAppNotificationSettings])
UIApplication.shared.registerForRemoteNotifications()
})
}
Logger.shared.info("Permission granted: (granted)")
UNUserNotificationCenter.current().delegate = self
}

    return true
}

func application(_ application: UIApplication, open url: URL,
                 sourceApplication: String?, annotation: Any) -> Bool {
    return true
}

func application(_ app: UIApplication, open url: URL,
                 options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool {
    
    // deepLink
    ........
    return true
}`

The scheme is added in LSApplicationQueriesSchemes , the app is open when I test the deeplink with safari, and when the app is works good , back the problem come when the app is en background

If I remove Accengage.start() , the deeplink works perfectly, and application:openURL:options: is called

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant