Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase dynamic link always goes to app store URL even if the app is installed

I am trying to integrate Firebase dynamic link into IOS app but the problem is that even if the app is installed the dynamic link is taking me to app store page to download the App from app store. Did anybody face the same problem and have solution for the same.

like image 889
Ajay Beniwal Avatar asked May 30 '17 01:05

Ajay Beniwal


People also ask

Do Firebase dynamic links work on iOS?

With Firebase Dynamic Links, you can direct users to either an IOS or Android app from a page, email, or text. If they don't have the app installed, these links can drive users to the appropriate mobile store listing.

How does Firebase dynamic links work?

Dynamic Links are smart URLs that allow you to send existing and potential users to any location within your iOS or Android app. They survive the app install process, so even new users see the content they're looking for when they open the app for the first time. Dynamic Links are no-cost forever, for any scale.

How do I get data from Firebase dynamic link?

Stay organized with collections Save and categorize content based on your preferences. To receive the Firebase Dynamic Links that you created, you must include the Dynamic Links SDK in your app and call the FirebaseDynamicLinks. getDynamicLink() method when your app loads to get the data passed in the Dynamic Link.

Do Firebase dynamic links expire?

As far as I know, dynamic links work for as long as your firebase project active. I used some dynamic links more than one year after they were created.


2 Answers

After spending my whole one day, I am able to figure it out finally. It is working if your app is live, just set App ID & TeamID in Firebase App settings.

Issue comes up when app is not live and we are setting another App ID. Just add following line, it will work like a charm:

FirebaseApp.configure()
FirebaseOptions.defaultOptions()?.deepLinkURLScheme = Bundle.main.bundleIdentifier

Setting deepLinkURLScheme with your bundle id.

like image 69
Pratik Patel Avatar answered Sep 21 '22 17:09

Pratik Patel


Edited the link through firebase console. With the 'Skip the app preview page' enabled and 'Use a custom scheme when universal links aren't supported' disabled I was always redirected to the app store.

The solution for me was to enable both universal links and a custom scheme.

Can't say why, but maybe it will help someone.

like image 32
Iris Veriris Avatar answered Sep 19 '22 17:09

Iris Veriris