question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Firebase Dynamic links always returned CANCELED

See original GitHub issue

I’m using dynamic links for my app.

I’ve followed the tutorial step-by-step and I’m able to open the app by clicking on the link posted on facebook.

But when I invoke getInvitation, I always have CANCELED as status of AppInviteInvitationResult.

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

                        // [END_EXCLUDE]
                    } else {
                        Log.d("StartActivity", "getInvitation: no deep link found.");
                    }
                }
            });

Into debug, I can see that result.getStatus() returns CANCELED, but the click on lick open the app correctly.

Where I’m wrong?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:49 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
mhdtoubancommented, Apr 20, 2017

This issue is still there I have firebase latest v 10.2.1. I have added SHA-1 & SHA-256 but this didn’t solve the issue.Also, other firebase products are working fine.

1reaction
OSemenovBoyarkacommented, Feb 17, 2017

Same issue here. However I’m experiencing issue only with long dynamic links, like this: https://ebn9r.app.goo.gl/?link=https://vpnshieldapp.com/?deeplink%3Dopen_sign_up&apn=com.vpnshieldapp.androidstandaloneclient

If I use short version, like https://ebn9r.app.goo.gl/lzMA - all works fine.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Firebase Dynamic links always returned CANCELED
The status is canceled when no intent has been received. I was wondering the same thing and it turned out that my links...
Read more >
Firebase Dynamic Links sometimes got error ... - GitHub
The network request cancellation is poorly documented, so it's not surprising that it's happening on any network quality. Does the error go away ......
Read more >
PendingDynamicLinkData - Firebase - Google
The dynamic link returned during initial launch will not be available from FirebaseDynamicLinks#getDynamicLink(Intent) during the update re-launch.
Read more >
Firebase + Flutter — Dynamic Links — Step By Step Guide
Dynamic Links are smart URLs that allow you to send existing and potential users to any location within your iOS or Android app....
Read more >
How to Create Dynamic Links in Firebase and React Native
Yo! In this video, we'll learn how to setup dynamic linking in react native and create dynamic links on the fly and also...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found