-
After clone the application, we create an application from the firebase console.
-
While creating the firebase application, we put the google-services.json file into our project in the place specified in instruction.
-
In the firebase console, enable the Phone option from the sign-in method section of the authentication section.
-
After receiving SHA-1 and SHA-256 by double clicking on the image in right side of android studio, we add it to the sha certificate fingerprints section in the project settings in the firebase console.
-
For recaptcha cancellation, in the google cloud console of application enable "Android Device Verification" from library
-
If you run it from the emulator, it may ask for recaptcha so run it on a real device
-
And enter phone number as + (country code) (number) on the first screen of the application
For more informations: https://firebase.google.com/docs/auth/android/phone-auth