-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 Phone Auth (Android) Instant Verification Problem #718
Comments
I am facing the same dilemma, and while going through the Firebase Docs, I found some points can be used to reach a permanent fix. Link to Firebase Docs: - Authenticate with Firebase on Android using a Phone Number Quoting the docs: -
If you focus on the italicized text, the In the
But in The implementation of this in the Plugin is as follows where cordova-plugin-firebase/src/android/FirebasePlugin.java Lines 937 to 962 in c53bd4a
So, if we could expose this
By adding cordova-plugin-firebase/src/android/FirebasePlugin.java Lines 948 to 951 in c53bd4a
Maybe the Instant Verification could also be handled using the plugin this way. I am no expert in this and am just making some deductions from the available information. Kindof brainstorming, but if someone could take it forward from here, it would be great. |
@YaMo97 : Your solution is correct 👍. I will try to implement it. |
you are right @placha433 - I never thought about this hack while I was trying to fix this issue. So this is on me and the readme should be changed. We stopped using firebase at this project, as it didn't do the job right like we wanted. Love to see you guys push out a fix for this |
Readme stated I have to call my endpoint to get a custom token and sign in. I implemented according the guide provided and able to sign in now.
From my understanding, isn't when Firebase auth return me instant verification is true, I should get signed in directly instead of request a custom token from my endpoint to sign in with custom token?
Is the method stated in readme a temporary workaround solution or permanent fix?
The text was updated successfully, but these errors were encountered: