Skip to content Skip to sidebar Skip to footer

Opening An Instant App By A Firebase Dynamic Link With Custom Parameters (app Links)

I'm searching for a way to open an Android Instant app in a mobile browser. The app supports app links (deep linking in http/https). My Android app is working as an instant app and

Solution 1:

I've contacted Firebase support, and got a solution: Adding the "afl" parameter in the link with the value of the app link.

Example:

https://sub.example.com/?link=https://example.com/some-path/file?param1=value1&param2=value2&apn=package.name.com**&afl=https://example.com/some-path/file?param1=value1&param2=value2**

Solution 2:

The Android app links work properly if the user follows the following steps:

  1. Verify that you are logged into Google, Chrome, and Google play with the account you plan to use for the instant apps.

  2. Go into Google Play Store settings, find the tab for Instant Apps and Enable Instant Apps enable Instant Apps

  3. In your website add html to index.html or the equivalent file where you want to place the embedded link such as this:

    <!DOCTYPE html><html><body><h2>HTML Links</h2><p>HTML links are defined with the a tag:</p><ahref="https://example.com/path">This is a link to the instant app</a></body></html>
  4. The instant app linking will only work from links embedded within an app such as in gmail or Chrome and not from directly pasting the url in a browser navigation bar.

If you have any questions about this approach, please let me know.

Post a Comment for "Opening An Instant App By A Firebase Dynamic Link With Custom Parameters (app Links)"