2016-10-25 1 views
0

Ich habe ein großes Problem bei der Implementierung der dynamischen Links von Firebase in Android.Dynamische Android-Firebase-Links geben immer den Status CANCELED zurück

Ich folgte genau diese Anweisung: https://firebase.google.com/docs/dynamic-links/android

Mein Manifest ist richtig, mein Feuerbasis Projektschlüssel korrekt SHA1 enthält.

Wenn ich über ADB triggere, wird meine Zielabsicht geöffnet, ABER das AppInviteInvitationResult hat immer den Status CANCELLED.

Ich habe alles versucht und konnte nicht jede Lösung finden ...

Mein Code ist wie folgt aussehen:

mGoogleApiClient = new GoogleApiClient.Builder(this) 
      .enableAutoManage(this, this) 
      .addApi(AppInvite.API) 
      .build(); 

    boolean autoLaunchDeepLink = false; 
    AppInvite.AppInviteApi.getInvitation(mGoogleApiClient, this, autoLaunchDeepLink).setResultCallback(
      new ResultCallback<AppInviteInvitationResult>() { 
       @Override 
       public void onResult(@NonNull AppInviteInvitationResult result) { 
        if (result.getStatus().isSuccess()) { 
         Intent intent = result.getInvitationIntent(); 
         String deepLink = AppInviteReferral.getDeepLink(intent); 
         // MY CODE 
        } 
       } 
      }); 

onResult genannt wird, aber Status wird immer ABGESAGT!

Manifest wie folgt aussehen:

<activity 
     android:name="appsoluts.kuendigung.ActivityDeepLink" 
     android:theme="@style/AppTheme.NoActionBar" 
     android:screenOrientation="portrait" 
     android:parentActivityName="appsoluts.kuendigung.ActivityMain" 
     android:launchMode="singleTop" 
     android:configChanges="orientation|screenSize" 
     android:windowSoftInputMode="stateHidden|adjustResize"> 

     <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="kuendigung.org" android:scheme="http"/> 
      <data android:host="kuendigung.org" 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="bien-resilier.fr" android:scheme="http"/> 
      <data android:host="bien-resilier.fr" android:scheme="https"/> 
     </intent-filter> 

     <meta-data 
      android:name="android.support.PARENT_ACTIVITY" 
      android:value="appsoluts.kuendigung.ActivityMain" /> 

    </activity> 

Irgendwelche Ideen?

+0

Haben Sie jemals etwas herausgefunden? –

Antwort

0

Sie sollten auch SHA256 Ihres Schlüssels zu Ihrer Android-App-Konfiguration in Firebase-Panel hinzufügen.

Verwandte Themen