-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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_auth] TypeError: Cannot read properties of undefined (reading 'appVerificationDisabledForTesting') #11485
Comments
Facing the same issue on firebase_auth v4.7.3 when I call the verifyPhoneNo function on flutter web. #0 packages/hidden/core/utils/logging.dart 53:53 error ⛔ unknown -- An unknown error occurred: TypeError: Cannot read properties of undefined (reading 'appVerificationDisabledForTesting') Verification Failed |
Hi @jeprojects, please provide the code sample you're using in a repo that we can clone so that we can investigate this. Please note that for web, you should be using |
Facing the same issue, |
Setting previous version in <head>
...
<script>window.flutterfire_web_sdk_version = '9.22.1';</script>
</head> |
Fixes it for me on web project, |
didnt for me , all i did was do flutter upgrade and even reverting now doesnt solve it anymore |
This works on 4.7.3 as well but with a flutter warning... Which means something in the update is not compatible with the latest SDK 🤔
|
this worked for me aswell , with the same warnning |
It fixes it for me with |
Works with WARNING: FlutterFire for Web is explicitly tested against Firebase JS SDK version "10.1.0" |
|
Is anyone facing this issue when they use |
I believe it affects both:
|
@danagbemava-nc by the looks of the comments, most of them. |
Same here I suspect this because of https://github.com/firebase/firebase-js-sdk/pull/7326/files The parameters to |
Thanks all for your patience, I can reproduce the issue using the plugin example code. |
Hope someone can guide that PR to a quick resolution, I need this fix :( |
This issue is pending. Even after adding:
` WARNING: FlutterFire for Web is explicitly tested against Firebase JS SDK version "10.1.0"
for which you find the script was added manually as advised One major thing to note: This started failing immediately after upgrading from Flutter 3.10.6 to Flutter 3.13.0> Note that the packages are all up to the latest. This issue should remain open. I have checked on the rearranged |
Same issue with 10.1.0 |
This doesn't work for me with latest firebase_auth version, it works with these ones: firebase_auth: 4.6.3 and using <script>window.flutterfire_web_sdk_version = '9.23.0';</script> before closing head |
this issue is still present [3.13.1] |
I have tested with flutter sdk 3.10.6 and 3.13.0 and 3.13.2 and come to a conclusion, the issue is with: firebase_auth: ^4.7.0 and above. |
The issue is fixed for me on: Don't forget to comment out the fix in index.html if you made it. |
I am getting the same issue on signInWithPhoneNumber, using Firebase 10.3.1 |
I resolved this issue by degrading the firebase version to 9.14.0 Hope this helps you out |
Fixed for me on Android, iOS and web |
Bug report
Describe the bug
When using verifyPhoneNumber() on web (tested working on iOS) an exception is thrown
[firebase_auth/unknown] An unknown error occurred: TypeError: Cannot read properties of undefined (reading 'appVerificationDisabledForTesting')
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
It should send an SMS verification code to the entered phone number
Additional context
Started happening from
flutter_auth 4.7.0
Flutter doctor
Run
flutter doctor
and paste the output below:Click To Expand
Flutter dependencies
Run
flutter pub deps -- --style=compact
and paste the output below:Click To Expand
The text was updated successfully, but these errors were encountered: