Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase dynamic links always opens app store

I have been trying to get dynamic links working all day to no success.

I have created a dynamic link using firebase web and with a google provided link. I have added the associated domains as instructed (applinks:https://myapp.page.link/sZZL), and also have firebase hosting set up.

On firebase I have checked the Team ID and App store ID (its not released to the app store, but in uploaded to apple developer account and so has an ID) are correct.

The url type is set up correctly, with the bundle id set.

If I open the link in chrome, it redirects to the app just fine.

I've tried sending a email with the link and adding it to notes and opening from there. All open the app preview page which then redirects to the app store.

Thee app is not on the app store yet as it is in development - would this impact it?

I simply want it to redirect to the app (which is on the phone in question) rather than the app store

like image 799
user3024827 Avatar asked Jun 21 '19 14:06

user3024827


People also ask

Do Firebase dynamic links work on iOS?

In the Firebase console, open the Dynamic Links section. Accept the terms of service if you are prompted to do so. Ensure that your app's App Store ID and your App ID prefix is specified in your app's settings. To view and edit your app's settings, go to your Firebase project's Settings page and select your iOS app.

What is universal link in iOS?

Universal links allow your users to intelligently follow links to content in your app or to your website. Learn how the latest enhancements in universal links give your users the most integrated mobile and desktop experience, even when your app isn't installed on their device.

What is dynamic linking in Android?

With Dynamic Links, your users get the best available experience for the platform they open your link on. If a user opens a Dynamic Link on iOS or Android, they can be taken directly to the linked content in your native app.

What is a dynamic link?

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.


2 Answers

To get your dynamic links to work properly on iOS, you need to set up:

  1. associated domains This property sets up in custom entitlements file and looks like

<key>com.apple.developer.associated-domains</key>
<array>
    <string>applinks:myapp.page.link</string>
</array>
  1. Url types In info.plist add URL types that firebase will use by default

<key>CFBundleURLTypes</key>
<array>
    .... Some others url schemes
    <dict>
        <key>CFBundleTypeRole</key>
        <string>Editor</string>
        <key>CFBundleURLName</key>
        <string>Bundle ID</string>
        <key>CFBundleURLSchemes</key>
        <array>
            <string>your.bundle.id</string>
        </array>
    </dict>
    ....
</array>

Also, you should add Team ID (required) and App Store ID (if your app not published, you can use App Store ID of any another app as a temporary solution, but also required)

For more information see firecast

For handling links in application use this

like image 122
Mark Iliev Avatar answered Oct 01 '22 03:10

Mark Iliev


Please check the link setup in associated domains. It should not include https or www.

For example:

It should be something like: "applinks:appname.page.link"

But it should not be something like: "applinks:https://appname.page.link" or "applinks:www.appname.page.link"

like image 41
Shivani Bajaj Avatar answered Oct 01 '22 02:10

Shivani Bajaj