Firebase-phone-authentication | Android App that implement Firebase Phone | Authentication library
kandi X-RAY | Firebase-phone-authentication Summary
kandi X-RAY | Firebase-phone-authentication Summary
An Android App that implement Firebase Phone Authentication System to verify user using OTP.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Create the instance
- Request phone auth
- Verify phone and create user
- Initializes the user
- Check user profile
- Initializes the view
- Initializes the profile
- Callback callback when an item is selected
- On create options menu
Firebase-phone-authentication Key Features
Firebase-phone-authentication Examples and Code Snippets
Community Discussions
Trending Discussions on Firebase-phone-authentication
QUESTION
This question is not similar to any of the others. I've already tried many solutions from App crashes with firebase phone auth, error while getting firebase phone auth OTP
Android app crashes on firebase phone authentication, but nothing works.
In my flutter app(android) I am using firebase phone authentication. When I call the 'verifyPhoneNumber' method of firebase to send OTP, my app getting crashes and exits leaving no error message.
Here's my code
...ANSWER
Answered 2021-Jan-22 at 06:08Yes, Adding "implementation 'androidx.browser:browser:1.3.0' " in my app/build.gradle solved this problem. This dependency is needed for firebase_auth > version 20.0 . Firebase didn't mention about this new modification in any of the release notes. Anyway Stack Overflow members did it. Thanks to all who helped me to solve this. 😇
QUESTION
I am trying to implement phone auth using firebase. I was going through this guide -> https://fireship.io/lessons/firebase-phone-authentication-with-angular-4-tutorial/
...ANSWER
Answered 2020-Jul-02 at 15:29You can either do:
QUESTION
I'm having react-native app that is using Firebase to verify user phone numbers. So far, I was testing this by the use of test phone number added to Firebase console and it was working fine. Now, I'm trying to prepare my application for release and I was trying to generated signed release and test phone verification. I did the following:
- generated release keystore and added it to android/app
- added these parameters to build.gradle android.signincConfigs.release storeFile file('my-release-key.keystore') storePassword 'my-password' keyAlias 'my-alias' keyPassword 'my-password' (basically following these steps https://medium.com/@raguct25/how-to-generate-signed-or-released-apk-file-from-react-native-252bdd1915a2)
- used keytool -list ... command to get SHA-1 and add it to Firebase console under my project.
- download new google-services.json and added it under android/app
-
- generate build using ./gradlew assembleRelease
- generate signed APK using Android Studio
- run release in simulator using react-native run-android —variant=release
In each of these builds when firebase is trying to authenticate it's causing app to crash when request to send OTP code is made. My implementation is similar to approach described here https://heartbeat.fritz.ai/implement-firebase-phone-authentication-in-react-native-apps-237959027611
App works well with test phone number.
Error is happening within this code silently, e.g. catch block doesn't catch any error:
...ANSWER
Answered 2020-Nov-28 at 20:42Put this line inside app/build.gradle under dependencies
implementation "androidx.browser:browser:1.2.0"
It is because its do reCAPTCHA verification and opens up browser.
QUESTION
I'm implementing FirebaseAuth verify phone adapting this guide https://medium.com/@tapanrgohil/firebase-phone-authentication-in-flutter-with-bloc-pattern-4ddc2d43d76c as I don't want to sign in but just link the new PhoneAuthentication to existing user and I'm using AuthenticationBloc
instead of Losing Bloc es in the guide.
I start the phone verification process in PaymentScreen
and I tried providing AuthenticationBloc
directly in PaymentScreen
's MultiBlocProvider
, thinking create a new AuthenticationBloc
but the error is the same.
In AuthenticationBloc
basically an internal StreamController
takes care of all phone verification events. Incoming States
in PaymentScreen
's BlocListener
just react popping and showing dialogs as in case of AutoRetrieveCodeTimeout
showing manual otp insert dialog, errors, wrong otp and so on.
To find out what's causing the bad state I first commented out all context pops just to make sure it wast that, and then I commented out all .close()
in the stream.
These are the prints from console:
...ANSWER
Answered 2020-Oct-24 at 20:31After a few trials I Found out that the main problem was using the AuthenticationBloc
so I made a dedicated PhoneAuthenticationBloc
while still using AuthenticationState
and AuthenticationState
and take care of the event/state routing without a `StreamController.
I'll leave the classes here so to be helpful to others.
New bloc:QUESTION
as of May 17, digits.com released a statement:
http://get.digits.com/blog/introducing-firebase-phone-authentication
Stating that digits.com auth becomes obsolete and firebase takes over.
Firebase description is other here: https://firebase.google.com/pricing/
They state that up to 10k phone authentifications / month will be free of charge.
Does anyone know if by single phone auth they mean an exact act of sending SMS or performing a phone call?
Can it be that simple token refresh (after 24hours) will also be considered an phone auth request?
Also, does that 10k requests also include already authenticated users or just new authetification actions that month?
Thanks!
...ANSWER
Answered 2017-May-26 at 16:55firebaser here
The 10K quota is for phone number verifications, not for authentication requests.
Token refresh on Firebase Authentication happens hourly. But this does not require re-verification of the phone number. The only time re-verification is needed is if your code explicitly signs the user out, or in some uncommon circumstances when the account needs to be reverified.
QUESTION
I am following this tutorial https://www.codementor.io/ememobongakpanekpo/guide-to-firebase-phone-authentication-in-android-using-kotlin-fxq3o83l1 to get signed in with Firebase.
I have added the latest dependencies
Build.gradle.app
...ANSWER
Answered 2018-Jun-20 at 11:39Update the following depedency:
QUESTION
In Firebase SMS Authentication for Android, I'm trying to debug the stage in which the user has to type in the Verification Code he received via SMS.
However, due to the Instant Verification, I cannot recreate this scenario on my phone anymore because the onCodeSent()
event is never called again. The onVerificationCompleted()
is called instead - which is GOOD for production, but it leaves me no option to debug my SMS Code Verification screen.
Unfortunately, at the moment there is no way to disable Instant Verification (waiting for @samtstern's response)...
How can I recreate that scenario again? at least for debugging?
This answer didn't help because we can't get the ForceResendingToken
without triggering the onCodeSent(..)
, and as I said, I can't get it triggered...
ANSWER
Answered 2017-Jul-08 at 18:36Closing this question since @samtstern has responded to me on Github, providing an alternate workaround due to the (current) lack of feature to disable Instant Verification:
That's a good point. I'll make sure to add that to the feature request internally. One workaround is to use two devices. On one device (with no SIM) enter the phone number of the other device (with a SIM). Then you'll get the code flow.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Firebase-phone-authentication
You can use Firebase-phone-authentication like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the Firebase-phone-authentication component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page