skip to Main Content

I am using firebase_dynamic_links 5.0.11 and Flutter 3.3.9. I did implement the dynamic link by firebase and it is working as it is expected on Android version 12 or less.
The problem is just on Android version 13 that the link can not open the app.
I did find some solutions for android 13 like adding the SHA-256 key to Firebase and adding the android:autoVerify="true" to AndroidManifest. But they do not solve the problem.
Does anyone have any clue about the solution?

2

Answers


  1. Chosen as BEST ANSWER

    The problem got solved by moving intent-filter inside the activity.

    I changed it from:

    <activity>
      
            .....
    
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category 
                android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
    
            .....
    
            <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:host="YOUR_CONTENT_LINK_DOMAIN"
                android:scheme="https"/>
            </intent-filter>
    
        </activity>
    

    to

        <activity>
    
        <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:host="YOUR_CONTENT_LINK_DOMAIN"
                android:scheme="https"/>
         </intent-filter>
      
          .....
    
          <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category     
                android:name="android.intent.category.LAUNCHER"/>
          </intent-filter>
    
          .....
    
        </activity>
    

  2. check do you have in your manifest

      <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:host="YOUR_CONTENT_LINK_DOMAIN"
                    android:scheme="https"/>
            </intent-filter>
    

    I had the same issue on android 13 but on 12 and lower was ok. With this intent filter working ok for me

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search