Closed 9oya closed 1 year ago
I fixed this issue by adding the following code
override func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool {
// Singular
if let singularAppDelegate = SingularAppDelegate.shared() {
singularAppDelegate.continueUserActivity(userActivity, restorationHandler: nil)
}
if userActivity.webpageURL?.path.contains("sng.link") ?? false {
return true
}
return super.application(application, continue: userActivity, restorationHandler: restorationHandler);
}
Hi , @9oya thanks for the proposition :) We updated our flutter integration docs at: Singular Flutter SDK
The solution is to call return super.application(application, continue: userActivity, restorationHandler: restorationHandler);
in any case, even if the URL does not contain "sng.link".
Please keep in mind that not all singular links contain "sng.link" in them
After adding the below code block for SingularLink(singular_flutter_sdk: ^1.0.12) in the iOS AppDelegate, my Firebase Dynamic Links (firebase_dynamic_links: 5.0.11) stopped working. Removing the code block restores Firebase Dynamic Link functionality, but causes issues with SingularLink.