-
-
Notifications
You must be signed in to change notification settings - Fork 473
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
No credential.code received although credential.instantVerification is true #176
Comments
I think this line here is not returning correct field value or there might have been changes to PhoneAuthCredential on firebase api There had been discussion about it on original repo about this. arnesson#861 |
If you still encounter issues, please respond here and I will reopen the issue to investigate. |
hey @dpa99c, When I'm using the devices phone number I received instantVerification = true, without the verificationId or code. The expected output here would be with the verificationId and Code When I'm using a phone number of a different device, I receive instantVerification = true along with the verificationId and a null code. The expected outcome here would be only the verificationId. I've not developed any cordova plugins before but I'm going to see if I can create an PR for this. |
@MattGould1 As you can see in the source code, |
hey @dpa99c sorry, I didn't mention that was with https://github.com/dpa99c/cordova-plugin-firebasex-test I get the same results within my actual project as well. |
Here's a look at what
This is what is received when using a phone number where instant verification shouldn't be possible
|
I can still confirm that the As I mentioned in earlier comment, there has been some changes to firebase API such that the private fields like code and verificationId of PhoneAuthCredential are hard to retrieve. I tried playing with it but couldn't get those fields. Mind that I tried trigerring instant verification in a real android device instead of setting up test phone number in firebase console. |
quick update, if this helps I'm able to sign in with the credential using but the credential is still missing the |
hey @dpa99c, The only way to get this functionality to work for me was by implementing the native |
The internal reflection approach inherited from |
Bug report
Current behavior:
Calling verifyPhoneNumber on android triggers instantverification however no code is sent in the credential object. I do get key
verified: false
though which means no verificationId and no code.Edit: The PhoneAuth user account is being created on firebase console. So, there's no doubt that verification was succesful.
Expected behavior:
Expected behavior is to get code in the credential object when credential.instantVerification is true
Environment information
cordova-plugin-androidx 1.0.2 "cordova-plugin-androidx"
cordova-plugin-androidx-adapter 1.1.0 "cordova-plugin-androidx-adapter"
cordova-plugin-device 1.1.7 "Device"
cordova-plugin-firebase-analytics 3.0.0 "FirebaseAnalyticsPlugin"
cordova-plugin-firebase-messaging 3.0.0 "FirebaseMessagingPlugin"
cordova-plugin-firebasex 6.1.0 "Google Firebase Plugin"
cordova-plugin-google-analytics 1.8.6 "Google Universal Analytics Plugin"
cordova-plugin-inappbrowser 3.0.0 "InAppBrowser"
cordova-plugin-keyboard 1.2.0 "Keyboard"
cordova-plugin-safariviewcontroller 1.6.0 "SafariViewController"
cordova-plugin-screen-orientation 3.0.1 "Screen Orientation"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-plugin-wkwebview-engine 1.1.4 "Cordova WKWebView Engine"
cordova-support-android-plugin 1.0.1 "cordova-support-android-plugin"
cordova-support-google-services 1.3.1 "cordova-support-google-services"
es6-promise-plugin 4.2.2 "Promise"
Runtime issue
Android build issue:
Related code:
Console output
console output
The text was updated successfully, but these errors were encountered: