1

Firebaseダイナミックリンク処理エラー:ダイナミックリンクをオンクリックすると、インテントフィルタ(DynamicLinkHandlerActivity)を使用したアクティビティではなくランチャアクティビティが開かれています。Firelinkダイナミックリンク処理エラー

ランチャーの活動:

<activity android:name=".SplashScreen" 
    android:screenOrientation="portrait" 
    android:theme="@style/AppTheme.NoActionBar"> 

    <intent-filter> 
     <action android:name="android.intent.action.MAIN" /> 
     <category android:name="android.intent.category.LAUNCHER" /> 
    </intent-filter> 

</activity> 

ダイナミックリンクハンドラ:

<activity android:name=".LinkHandler" > 

    <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="dynamic.link.code" 
      android:pathPattern="/?link" 
      android:scheme="https" /> 

    </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="dynamic.link.code" 
      android:pathPattern="/?link" 
      android:scheme="http" /> 

    </intent-filter> 

</activity> 

答えて

0

あなたのマニフェストではなく、ダイナミックリンクであなたのリンク値のインテントフィルタを使用する必要があります。ダイナミックリンクのための例えば

https://appcode.app.goo.gl/?link=https://example.com& ...

あなたの解決アクティビティインテントフィルタは

<data android:scheme="https" android:host="example.com"/>

する必要があります