Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Test Firebase Dynamic Links for Unpublished App

I have a dev version of my app that is not published in the Play Store. I would like to test dynamic links with it, but whenever I click a dynamic link, it opens the play store, and I get a not found error (because there is no corresponding package in the Play Store).

What's the recommended way of testing this? It would also apply to staging environments, etc... that are not published.

like image 258
Eliezer Avatar asked Aug 01 '16 20:08

Eliezer


People also ask

What is dynamic link in Firebase?

Firebase Dynamic Links module provides a link which we can share with other apps. The recipient of the link may not have the app. In that case, the dynamic link takes the user to the App Store and prompts the user to install the app. When the app opens after the installation, it receives the link embedded within the Dynamic link.

How do I create a deep link in Firebase?

You can create Dynamic Links programmatically or by using the Firebase console. When your app opens, use the Dynamic Links SDK to check if a Dynamic Link was passed to it. If so, get the deep link from the Dynamic Link data and handle the deep link as necessary.

What if I don't have a domain for my Firebase app?

Or, if you don't have a domain for your app, you can use a free custom page.link subdomain: Create your free subdomain in the Firebase console. All Dynamic Links features, including analytics, post-install attributions, and SDK integrations, work with both custom page.link domains and your own domain.

How do I create a dynamic link to test the app?

The dynamic link to test the app will be generated using the Firebase console. Open the Firebase console in a browser window, select the Firebase Examples project and click on the Dynamic Links option. Within the Dynamic Links screen, click on the New Dynamic Link button and configure the link as follows:


1 Answers

I was able to test it like this:

  • I published a closed alpha version of an app - open only to my email (beta should work just the same)
  • Opted in via the opt-in link in the developer console (it's on the APK section)

After that, clicking the dynamic link I created on the Firebase console worked as expected, without having my app out in the open.

Caveats:

  • Connected Google users - might cause a problem if only one is on the alpha group list
  • It takes a bit of time to get started. Make sure you can see the app in Google Play before trying to click the link
  • Updates, fixes and changes take time until they actually appear on Google Play. Google Play now offers internal testing, a level below alpha that propagates updates quicker.
like image 172
Itai Hanski Avatar answered Sep 21 '22 19:09

Itai Hanski