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.

Phone verification stopped working and keeps failing

See original GitHub issue
  • Android device: Samsung Galaxy S2 (SM-T815Y)
  • Android OS version: 7.0
  • Google Play Services version: 17.0.0
  • Firebase/Play Services SDK version: 21.4.3

I followed the documentation and successfully implemented phone verification (without AuthUI) and it worked great. However, I was playing around with the FirebaseAuth class, specifically the claims getClaims().get("admin") code and this is when the app’s auth mechanism stopped working. I’m unsure if that it is the cause because it was almost an hour since I did my last logout-login but when I logged off and tried to login, the app completely failed to login. And then I saw these log message appear continuously:

I/FirebaseAuth: [FirebaseAuth:] Preparing to create service connection to gms implementation
I/BiChannelGoogleApi: [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzaq@e414399
W/FirebaseAuth: [PhoneVerificationSession] PhoneVerificationSession constructor
W/FirebaseAuth: [PhoneNumberAuthPostProcessor] postProcess starts
W/FirebaseAuth: [PhoneVerificationSession] PhoneVerificationSession terminated
W/FirebaseAuth: [PhoneNumberAuthPostProcessor] postProcess ends
W/FirebaseAuth: [PhoneVerificationSession] onFailure
I/FirebaseAuth: [FirebaseAuth:] Preparing to create service connection to gms implementation
D/FirebaseAuth: Notifying id token listeners about a sign-out event.
D/FirebaseAuth: Notifying auth state listeners about a sign-out event.
I/FirebaseAuth: [FirebaseAuth:] Loading module via FirebaseOptions.
I/FirebaseAuth: [FirebaseAuth:] Preparing to create service connection to gms implementation

I could no longer make phone auth logins. I tried rolling back commits too and then deploying the app but it didn’t solve it and I feel that some kind of device-level block occurred… I tried auth using different phone number but that didn’t work as well. In the end, I borrowed my friend’s phone and tried login with the older APK and it worked fine. I’m not sure how to fix this and I’m totally locked out of running the app thro’ my development device which is bad, nor can I borrow my friend’s device. I think switching to emulator is gonna be my option until a solution comes out. Ideas on what may have happened would help. Thanks.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
yuchenshicommented, May 18, 2020

@ashwinraghav Thanks for looping me in. If you don’t mind, please add the api: auth tag next time for visibility.

0reactions
yuchenshicommented, May 18, 2020

Would you mind contacting Firebase Support? As you have mentioned, rolling back the build, etc. don’t help, so I doubt there is anything on the SDK side. Instead, the Firebase Support is the best channel for these issues – you can tell them the exact project IDs, device IPs, etc., and they have access to your project and can help to check if there were any known issues, outages or rate limits.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix common issues with 2-Step Verification - Google Support
If a text message with a verification code was sent to your phone, make sure your service plan and mobile device supports text...
Read more >
5 Solutions To Fix Not Getting Verification Code Texts [iPhone ...
5 Solutions To Fix Not Getting Verification Code Texts · 1. Restart Your Device · 2. Switch on and off Airplane Mode ·...
Read more >
Google Authenticator Codes Stopped Working? How to Fix ...
Are your Google Authenticator codes not working? It might be related to a problem on your phone. Here's how to fix it.
Read more >
how to solve "Verification Failed!… | Apple Developer Forums
Go to appleid.apple.com, edit & disable the two-factor authentication in security. Signout from icloud in phone and re-login..works!!! Posted 5 ...
Read more >
Not receiving SMS Verification Code Fix (8 Methods) - YouTube
Do this to Fix the issue where your phone is Not receiving SMS Verification or text versification for website or Apps by two...
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