Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android Devices Not Receiving SMS Verification Codes via Firebase Phone Authentication #16787

Closed
pang5bet opened this issue Nov 28, 2024 · 3 comments
Labels
blocked: customer-response Waiting for customer response, e.g. more information was requested. closed-by-bot platform: android Issues / PRs which are specifically for Android. plugin: auth Stale Issue with no recent activity type: bug Something isn't working

Comments

@pang5bet
Copy link

I'm encountering an issue where Android devices are not receiving SMS verification codes when using Firebase Phone Authentication. This problem manifests in two scenarios:

Debug Phone Numbers: When using debug phone numbers listed in the Firebase console, the verifyPhoneNumber API appears to hang indefinitely, and after approximately 10 minutes, proceeds to the verification code input screen without sending a code.
Real Phone Numbers: Similar behavior is observed with real phone numbers, where the SMS verification code is either delayed significantly or not received at all.
Affected Platforms:

Android
Affected Plugin:

Firebase Auth
Additional Information:

I've been using Firebase Auth for over a year without encountering this issue.
I've configured release, debug, and Google-signed keys in the Firebase console.
I've recently upgraded to the SMS Multi-Factor Authentication feature.
I've added debug keys to the Firebase console for my app.
The issue is specific to Android devices, as iOS devices are working as expected.
Potential Causes and Troubleshooting Steps:

While I've already explored some potential solutions, I'd appreciate further guidance:

Firebase Console Configuration:

Verify that Phone Number Verification is enabled.
Ensure the correct project and app are selected.
Check that debug phone numbers are added to the allowed list.
Android App Configuration:

Confirm the Firebase configuration file is accurate and linked correctly.
Verify API keys are up-to-date and configured properly.
Ensure necessary permissions (SMS, Internet) are granted.
Network Connectivity:

Test with different network conditions (Wi-Fi, mobile data).
Consider using a VPN or mobile hotspot.
Device and Carrier-Specific Issues:

Try different Android devices and carriers.
Test on an emulator or virtual device.
Firebase SDK and Dependencies:

Ensure the latest Firebase SDK and dependencies are used.
Check for any known issues or recent changes in Firebase documentation.
Firebase Support:

Reach out to Firebase support for further assistance.
I hope this revised issue report provides a clear and concise overview of the problem. Any additional insights or troubleshooting tips would be greatly appreciated.

@pang5bet pang5bet added good first issue Good for newcomers type: documentation Improvements or additions to documentation labels Nov 28, 2024
@SelaseKay SelaseKay added type: bug Something isn't working plugin: auth platform: android Issues / PRs which are specifically for Android. Needs Attention This issue needs maintainer attention. and removed type: documentation Improvements or additions to documentation good first issue Good for newcomers labels Nov 28, 2024
@SelaseKay
Copy link
Contributor

Hi @pang5bet, did you start experiencing this issue after upgrading your firebase_auth version, or was it happening with the version you were already using?

@SelaseKay SelaseKay added blocked: customer-response Waiting for customer response, e.g. more information was requested. and removed Needs Attention This issue needs maintainer attention. labels Nov 29, 2024
@google-oss-bot google-oss-bot added the Stale Issue with no recent activity label Dec 10, 2024
@google-oss-bot
Copy link

Hey @pang5bet. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

@google-oss-bot
Copy link

Since there haven't been any recent updates here, I am going to close this issue.

@pang5bet if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

@firebase firebase locked and limited conversation to collaborators Jan 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
blocked: customer-response Waiting for customer response, e.g. more information was requested. closed-by-bot platform: android Issues / PRs which are specifically for Android. plugin: auth Stale Issue with no recent activity type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants