0

Questions

Please tell me how changing the intent-filter in AndroidManifest.xml like the following will affect the application. For example, it will not be able to be opened from a browser, or it will affect when it is listed in PlayStore, etc.

Before the change

      <intent-filter>
        <action android:name="android.intent.action.VIEW"/>
        <category android:name="android.intent.category.DEFAULT"/>
        <category android:name="android.intent.category.BROWSABLE"/>
        <data android:scheme="https" android:host="xxx.page.link"/>
        <data
            android:scheme="https"
            android:host="www.my.domain" />
      </intent-filter>

Ref.) https://firebase.google.com/docs/dynamic-links/flutter/receive#android https://github.com/firebase/firebase-android-sdk/issues/4198#issuecomment-1278762724

After the change:

      <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
        <data android:scheme="https" android:host="xxx.page.link"/>
        <data
            android:scheme="https"
            android:host="www.my.domain" />
      </intent-filter>

Background

I am a Flutter app developer, and I don't have that deep of an understanding of Android. I added intent-filter as described in the documentation to make my app compatible with Firebase Dynamic Links. However, this had an unexpected side effect. When opening a web browser (not WebView) from the app, a dialog box appears and asks which app to open the website with, but only for Android 11 and below. And the choice of which app to open includes your own app. And when I select myself, it does not work (my app is not a Web browser). I referred to this question to solve this. And after the change, the dialog to select the app to open no longer appears and the Firebase Dynamic Links are working fine. I am not sure how this affects my app, but I am also concerned that the Firebase Dynamic Links documentation is different from the official documentation.

Kind souls, please help me out.

I have made the changes and then verified that the PUSH notifications work and Firebase Dynamic Links work. I also checked the documentation to see what the changes meant, but it didn't make much sense.

shu07
  • 1
  • 1

0 Answers0