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.

No response while creating short dynamic link if Google Play Services are present but disabled

See original GitHub issue

[READ] Step 1: Are you in the right place?

Issues filed here should be about bugs in the code in this repository. If you have a general question, need help debugging, or fall into some other category use one of these other channels:

  • For general technical questions, post a question on StackOverflow with the firebase tag.
  • For general Firebase discussion, use the firebase-talk google group.
  • For help troubleshooting your application that does not fall under one of the above categories, reach out to the personalized Firebase support channel.

[REQUIRED] Step 2: Describe your environment

  • Android Studio version: 4.2
  • Firebase Component: Dynamic Links
  • Component version: com.google.firebase:firebase-dynamic-links:19.1.1

[REQUIRED] Step 3: Describe the problem

Steps to reproduce:

After I try to shorten dynamic link there is no response from Firebase API regardless of callback

The code provided in section “Relevant code” will never emit if Google Play Services are present on the device but were manually stopped and disabled through settings. Note that this code works fine if Google Play Services are present and enabled. It works fine if there are no Google Play Services on the device through .addOnFailureListener { } However if Google Play Services happen to be disabled Firebase API fails.

Note that other callback such as addOnCompleteListener or addOnCancelled do not work as well. I can provide any additional info if needed. This is easy to reproduce and should be easy to fix. Thanks

Relevant Code:

Single.create { emitter -> Firebase.dynamicLinks.shortLinkAsync(ShortDynamicLink.Suffix.SHORT) { longLink = dynamicLink } .addOnSuccessListener { emitter.onSuccess(it.shortLink.toString()) } .addOnFailureListener { emitter.onSuccess(dynamicLink.toString()) } }

// TODO(you): code here to reproduce the problem

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
gsakakiharacommented, Jul 26, 2021

The team working on this has investigated the bug and it looks like the plan is to return an error immediately if this happens on Android TV. I don’t have a time frame on when this will be fixed, though.

0reactions
maksym-morozcommented, Jul 20, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

Firebase dynamic link always open web version instead of ...
1 Answer 1 ... The reason seems not be under developpers control. I had this problem too because i was always testing with...
Read more >
Developer Program Policy - Play Console Help
App must prevent under-age users from wagering or conducting monetary transactions within the app; App must NOT be purchasable as a paid app...
Read more >
Integrating instant app: app links with Firebase Dynamic Links ...
BUG REPORT: This issue is composed of a clash between 2 Android features (which are supposed to work together): 1. Instant app: the...
Read more >
Set up a custom domain for Dynamic Links - Firebase
You will need to provide a URL prefix when you create Dynamic Links. ... But the following long-form Dynamic Links (and equivalent short...
Read more >
Dynamic Links - React Native Firebase
The link should take you to the App Store / Google Play, at which point you can abort and install the app manually...
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