Android app links work in production, but not on emulator

562 views Asked by At

I have configured app links as such:

            <intent-filter android:autoVerify="true">
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:host="sharer.myapp.com" android:scheme="https" />
            </intent-filter>

This works fine in production, with a minor unrelated issue that I am trying to resolve which is that it doesn't open the desired page.

To debug this, I should be able to open the link from my emulator, but I can't. I have tried both regular emulator and physical device, changing the configuration of the app so that it launches the url (replaced it with myurl in the pic, but I know it is the right one cause it opens the view), opening the url from my Whatsapp instead, and changing the build variants to "release", but it never opens the app and it always goes to the webview:

run config

There is something I am not getting here, because in production it works. Can someone help me?

Btw I am using Ionic and Capacitor v5, if that matters for something.

Thanks.

1

There are 1 answers

1
MIPB On BEST ANSWER

As CommonsWare pointed out, the correct solution was simply to go into the app details inside the settings and allowing the outside link of my sharer.

System settings > My App > Open By Default (the section where it says Allow app to open supported links) > Add my link there (it was already there, just unchecked).