1
votes

I'm using Firebase Dynamic Links for Android and iOS.

I've successfully configured the links for Android - open app if installed and Play Store if not.

For iOS, the app will successfully open if the app is installed but if it isn't the user does not get directed to the App Store. Instead they are presented with a page in the browser stating "Open link in app?".

I've configured my project in the Firebase Console to include App Store ID and Team ID. I've confirmed my dynamic link domain has an Apple app site association file for my app at [my domain]/apple-app-site-association.

Any ideas as to why when my app is not installed the dynamic link will not redirect to the App Store?

enter image description here

2

2 Answers

0
votes

You can achieve through the redirects in firebase.json and custom URL can be add the app URL under the dynamic link.

enter image description here

0
votes

Not sure how do you build your dynamic url, but if you use the rest api, you should set app store id: ios.setAppStoreId('123456789')

const linkParams = firebase.dynamicLinks().newDynamicLinkParameters('https://invertase.io', 'https://xyz.page.link');
linkParams
  .ios.setBundleId('io.invertase.testing')
  .ios.setAppStoreId('123456789')
  .ios.setMinimumVersion('18');

 const link = await firebase.dynamicLinks().buildLink({
   link: 'https://invertase.io',
   domainUriPrefix: 'https://xyz.page.link',
   ios: {
     bundleId: 'io.invertase.testing',
     appStoreId: '123456789',
     minimumVersion: '18',
   }
 });

My guess is since the url to app store looks like this: https://apps.apple.com/us/app/id**1505798107** you need to provide the appStoreId as well.

check: https://rnfirebase.io/reference/dynamic-links/dynamiclinkiosparameters