Demonstrates how to use the firebase_auth plugin.
- Enable phone authentication in the Firebase console.
- Add test phone number and verification code to the Firebase console.
- For this sample the number
+1 408-555-6969and verification code888888are used.
- For iOS set the
URL Schemesto theREVERSE_CLIENT_IDfrom theGoogleServices-Info.plistfile. - Click the
Test verifyPhoneNumberbutton.
- If APNs is not enabled or a simulator is being used, verification will be done via a Captcha.
- Once the phone number is verified the app displays the test verification code.
- Click the
Test signInWithPhoneNumberbutton. - Signed in user's details are displayed in the UI.
For help getting started with Flutter, view our online documentation.