1

Firebase 동적 링크 처리 오류 : 동적 링크 Onclicking은 인 텐트 필터 (DynamicLinkHandlerActivity)가있는 활동 대신 시작 프로그램 활동을 엽니 다.Firebase 동적 링크 처리 오류

런처 활동

<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"/>