-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Firebase Authentication Error: SMS Verification Fails with Code 17006 - "This operation is not allowed" #17070
Comments
Hi @UmerAbbasi1515, I recommend updating your ![]() |
@SelaseKay |
I have a few questions:
|
No it is not working with test number.
I am experiencing this issue on real device.
Yes i set up SHA in firebase console properly.
I also want to inform you this issue is only for android not for ios and web
Same project is working fine for ios and web
…On Tue, 11 Feb 2025 at 2:46 PM, Jude Selase Kwashie < ***@***.***> wrote:
I have a few questions:
- Does it work correctly with test numbers as described here
<https://firebase.google.com/docs/auth/flutter/phone-auth#testing>?
- Are you experiencing this issue on a physical device or an emulator?
- Have you set up the SHA fingerprint in the Firebase console for
Android? This is required for phone authentication to function properly.
—
Reply to this email directly, view it on GitHub
<#17070 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AR4VHJPUCV4S4MSSVRQTN4L2PHBIZAVCNFSM6AAAAABWZX4DJOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNJQGI4TAMJQHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
? |
Hi @UmerAbbasi1515, I'm unable to reproduce this issue with the firebase_auth example app. Kindly share a complete minimal repository which reproduces this issue. |
Is there an existing issue for this?
Which plugins are affected?
Auth
Which platforms are affected?
Android
Description
I am encountering an issue when attempting to perform phone number authentication using Firebase Auth in my Flutter application.
The SMS verification request fails with the following error:
SMS verification code request failed: unknown status code: 17006 null
D/FirebaseAuth: Invoking original failure callbacks after phone verification failure for UAE number, error - This operation is not allowed. This may be because the given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section.
[firebase_auth/operation-not-allowed] This operation is not allowed. This may be because the given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section.
Steps I’ve already taken:
1- I've verified that phone authentication is enabled in the Firebase console under the Authentication > Sign-in method tab.
2- I ensured that the Firebase project is properly linked with the Flutter app and the correct dependencies (firebase_auth: ^4.1.0, firebase_core: ^2.15.0) are installed and also iOS application working fine.
3- I have checked for any errors in the Firebase configuration or setup within the app, but everything seems correct.
4- I also "Start with 'Allow' to limit SMS usage to selected regions" under Authentication -> Settings tab in firebase console.
Has anyone else encountered this issue or know how to resolve it? Any insights on what might be causing the "This operation is not allowed" error, or what additional steps I might be missing would be greatly appreciated.
Reproducing the issue
Android app
Firebase Core version
^2.15.0
Flutter Version
3.27.0
Relevant Log Output
Flutter dependencies
Expand
Flutter dependencies
snippetReplace this line with the contents of your `flutter pub deps -- --style=compact`.
Additional context and comments
No response
The text was updated successfully, but these errors were encountered: