0

On the official page for Firebase Dynamic links (https://firebase.google.com/docs/dynamic-links/) there is a mention of showing an interstitial if the app is not installed: https://youtu.be/LvY1JMcrPF8?list=PLl-K7zZEsYLmOF_07IayrTntevxtbUxDL&t=87

Dynamic Links work seamlessly across iOS, Android, and desktop and mobile web. Dynamic Links can be configured to provide the best possible user experience, whether that's a personalized app launch, a fast interstitial, or opening your mobile website.

How can you do that?

Piotr Zawadzki
  • 1,678
  • 1
  • 18
  • 24
  • `ifl` - Optional: The link to open when the app isn't installed. Specify this to do something other than install your app from the App Store when the app isn't installed, such as open the mobile web version of the content, or display a promotional page for your app. So, in the Firebase console, it will ask for Custom URL. – Sachin Vas Nov 08 '16 at 16:30

1 Answers1

0

This is not a feature Firebase provides out-of-the-box.

Here are the steps you would need to implement it:

  1. Generate a Dynamic Link and set the ifl link param to a URL on your website.
  2. Build a custom interstitial and host it at the URL you used in the ifl param.
  3. Within that interstitial, insert a second Dynamic Link with an ifl param pointed to the App Store
    • This step should not be necessary because the Firebase docs state that users without the app should be automatically forwarded to the App Store by default, but I have never seen this actually happen — users without the app are always taken to the URL in the link param in my testing).
    • If you set a link param on this second link, it will overwrite the value from the initial link. You need to either leave link blank, or pass it through.

Alternative

If you don't want to deal with this, you should check out Branch.io (full disclosure: I'm on the Branch team). The Branch Journeys feature does exactly this for your own website, and the Deepviews feature provides the same thing if you don't have a website and don't want to set one up.

Alex Bauer
  • 13,147
  • 1
  • 27
  • 44