2

This is my code. from onSuccess penddingDynamicLinkData is null

 FirebaseDynamicLinks.getInstance()
            .getDynamicLink(getIntent())
            .addOnSuccessListener(this, new OnSuccessListener<PendingDynamicLinkData>() {
                @Override
                public void onSuccess(PendingDynamicLinkData pendingDynamicLinkData) {
                    // pendingDynamicLinkData is null

                }
            })
            .addOnFailureListener(this, new OnFailureListener() {
                @Override
                public void onFailure(@NonNull Exception e) {
                    finish();
                }
            });

In my manifest file

<intent-filter android:label="deeplink">
            <action android:name="android.intent.action.VIEW" />

            <category android:name="android.intent.category.DEFAULT" />
            <category android:name="android.intent.category.BROWSABLE" />

            <data
                android:host="link.moneylover.me"
                android:scheme="https" />

        </intent-filter>

Here is my link:

https://link.moneylover.me/addbudget?utm_campaign=test&utm_medium=test&utm_source=test

Previously I've tested and runs great. Currently I'm using firebase version: "11.4.2"

Let me know any ideas.

aydinugur
  • 1,208
  • 2
  • 14
  • 21
Hoang Duc Tuan
  • 415
  • 1
  • 4
  • 15
  • 1
    This doesn't appear to be a firebase deeplink (generated from firebase). Use getIntent().getData() to get the link. – Simon Marquis Nov 07 '17 at 09:31
  • I followed the instructions in the firebase doc – Hoang Duc Tuan Nov 07 '17 at 10:18
  • Yes but this is a regular deeplink, not a firebase deeplink. Therefore, the firesbase deeplink sdk can't extract anything from this url. – Simon Marquis Nov 07 '17 at 10:19
  • Hi @SimonMarquis, I have this link from the shortened link on the firebase console dynamic link. How to get the correct link? – Hoang Duc Tuan Nov 08 '17 at 01:53
  • Do you have any data associated to this link? – Simon Marquis Nov 08 '17 at 08:41
  • This link I used to test. And before the test it worked very well. Also, I have another link. ex: https://anj66.app.goo.gl/RZD6 Can you tell us more about the data associated? – Hoang Duc Tuan Nov 08 '17 at 09:38
  • In my case, for some reason, i start to have this problem in the same activity that has 'android.intent.action.MAIN' action. Moving the action MAIN to another activity allow the handler to receive the 'pendingDynamicLinkData'. – MiguelSlv Jan 05 '20 at 23:22
  • Getting same error which we extracting the firebase deep link url in Android app. Any one is experienced the same, please help. – Rajesh M P Apr 29 '20 at 15:17

0 Answers0