Android Devices Not Receiving SMS Verification Codes via Firebase Phone Authentication #16787
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
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.
The text was updated successfully, but these errors were encountered: