-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Cannot create PhoneAuthCredential without either verificationProof, sessionInfo, ortemprary proof. #1392
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
Comments
@baole thanks for the comment! Just adding some info here for my own reference: |
Oh, I got it. 🤦♂️ Users will switch to their messaging app and don't have a lot of RAM available so it kills your app. Since we only store the verification ID in memory, it gets lost. Side note: the number of times we've added bugs like this, you'd think we would learn. Nope. 😂😉 @samtstern I'll submit a PR tomorrow. 👍 @samtstern PS: Personal life has been super busy, hoping to become more active again in a month or so. 😊 |
@samtstern @SUPERCILEX the issue can be reproduced by enable the "Don't keep activities" option in Developer options on your test device. |
am having this problem too |
@SUPERCILEX thanks for jumping on this! If we didn't have bugs like this, what would Android development be anyway? |
🤣 So true Anyway, submitted #1393 |
Great. Thanks @SUPERCILEX for the fix. @samtstern, do you have any plan for 4.2.0 release? |
@baole no set plan right now, you can follow along on the milestone to see as things get cleared. |
This was fixed and released in version |
same problem |
Me too |
I'm also having this issue right now when using firebase.auth().currentUser.updatePhoneNumber(credential) |
For those seeing this issue recently: what version of FirebaseUI are you using? Can you provide logs of the failure? |
using this dependency: com.firebaseui:firebase-ui-auth:4.3.1 and got this crash
@samtstern or is it better to reopen a new issue about this? |
Thanks @woutervegter for the info! Re-opened. |
@samtstern same issue
Device Operating System |
Moving this to the backlog milestone since I want to solve it but can't actually figure out why it's still occurring. |
Note to sef: In the long term things like this would be better served by the new SavedState thing: |
Did you find any solution? I had the same problem too! |
how to user insert data in one time if alleready submitted our details??? |
facing the same issue :
Devices
|
Same Problem: Both on Emulator & while USB Debugging on Andoroid Phone
|
Here's the Code Snippet: `Future verifyPhone() async {
} Future smsCodeDialog(BuildContext context) {
}` |
still no solution in the thread closed without solution #1648 is also closed as duplicate of this . what are you doing @chitra-bahadur |
I believe this error is thrown when an empty code is submitted to |
I too facing this issue in IONIC4. Is anyone found solution? please help I have already wasted 3days |
For us this turned out to be related to the number we were using having been a real number but one that was whitelisted on the firebase console after it had been verified via SMS. See entry on fictional requirement for testing numbers (we were using a real number by mistake) -https://firebase.google.com/docs/auth/ios/phone-auth#test-with-whitelisted-phone-numbers |
Check that your verification code isn't null: const verifconde = this.state.verifcode.toString() |
I tried to print the smsCode and VerificationID on every callback function fall under verifyPhoneNumber Method. The OTP is sent successfully, the problem arises when PhoneCodeAutoRetrievalTimeout function is called, at the point, I should be displaying a dialog for entering the received OTP. Somehow I managed to display the dialog but when the OTP is entered, the verification is turning into null. I am trying to achieve Phone Authentication using BLoC Pattern (flutter_bloc package). Everything is working fine when no proper architecture is followed. I am kinda stuck with the BLoC pattern.
|
I faced this same issue. Found that this was happening when my UI was unable to update the |
Add your apple secret key in your console firebase |
Got this error when I send back empty string otp code to firebase. As long as the length of otp code is greater than 0, it won't crash and will return a proper error if the otp is invalid. In my case, I just disabled the submit button if the string length == 0 for a quick workaround |
This also happens in a case where user tries to enter OTP before PhoneAuthProvider.OnVerificationStateChangedCallbacks -> onCodeSent method gets called. As we get String verificationId when onCodeSent is called we have to wait until that. Showing a loader or disabling verify OTP button until we receive the verificationId can do the trick here. |
We've recently made a huge update to the Android SDK and please try with the latest SDK to see if the issue still persists. If so, please kindly open a new bug with the details and the version number you're using. Thanks! |
I have faced this problem before, I was passing null value as SMS code, I made sure that I pass the real value and it worked. |
@dombroks Thank you, you save my day |
@dombroks thanks, it works! |
i cannot fix this error can somebody help me E/AndroidRuntime: FATAL EXCEPTION: main |
Step 1: Are you in the right place?
We received a lot of crash report on the latest version 4.1.0 regarding to phone verification. The detail report are here http://crashes.to/s/77f7c50782c
The same users used our old version which is built with version 4.0.1 worked fine.
Step 2: Describe your environment
Step 3: Describe the problem:
App crashes during using phone number login using Firebase Auth
Observed Results:
Expected Results:
Phone login works
Relevant Code:
We use https://firebase.google.com/docs/auth/android/firebaseui
The text was updated successfully, but these errors were encountered: