Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Upon clicking Firebase dynamic link - DynamicLinks.dynamicLinks().handleUniversalLink returns false

I am using Firebase dynamic links and I have few links that I have created in the firebase console.

Here is example short link that I copy pasted to an email and clicking: https://app.xxx.com/deeplink/xyz

When we click on the link provided, the following function gets called:

func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool { }

I have tried capturing the dynamic link with following code and it always returns false and completion block was never executed:

let handled = DynamicLinks.dynamicLinks().handleUniversalLink(userActivity.webpageURL!) { dynamiclink, error in
   print("dyn:: ------- \(dynamiclink?.url)")
}

I have tried referring to similar issues here, here are few links: 1. https://github.com/firebase/quickstart-ios/issues/380 2. Firebase dynamic linking - Continueuseractivity not returning dynamic link url

But none of them worked. And this is the error I could see in the logs: Deep Link Web URL query is empty

PS: I am using Firebase Dynamic Links version - 4.0.1

like image 212
srisindhu saride Avatar asked Oct 19 '25 00:10

srisindhu saride


1 Answers

I forgot to setup FirebaseDynamicLinksCustomDomains in Info.plist. Once that has been set, it started working

like image 69
srisindhu saride Avatar answered Oct 20 '25 13:10

srisindhu saride



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!