MeetUp
  • Introduction
  • ScreenShots
  • Flutter App
    • Getting Started
    • Directory Structure
    • Change App Name & ID
    • Change App Color theme
    • Firebase Phone Auth
    • Firebase Phone OTP/ SHA1
  • Laravel Admin end
    • Getting Started
    • App API
    • Update & Terminal
    • Forgot Password (Web)
    • Firebase Phone Auth for Forgot Password
    • AI Platforms
  • MeetUp App API
  • Add Firebase To Flutter App
  • Set up reCAPTCHA verification for iOS Firebase Phone Auth
  • FAQs
    • Backend Image not working
    • Firebase: This domain is not authorized
    • AI Generator
  • Change logs
Powered by GitBook
On this page
  • Enable phone authentication on firebase first.
  • OTP
  • How to generate the app SHA1 and SHA56

Was this helpful?

  1. Flutter App

Firebase Phone OTP/ SHA1

PreviousFirebase Phone AuthNextGetting Started

Last updated 4 years ago

Was this helpful?

Enable phone authentication on firebase first.

  1. Click on authentication

  2. Click on Sign-in method tab

  3. click on phone then enable it

  4. on the sign-in method tab, scroll to the Authorized domains

  5. Add your backend domain. This is so firebase can allow request from your server.

OTP

Android has added SafetyNet you can read more . For OTP to work you need to do the following:

  • enable the Android Device verification api on the google cloud console. Follow the link to enable it.

How to generate the app SHA1 and SHA56

You need to configure firebase phone auth for phone otp verification to work, without this you would running into errors building the app.

To solve this error, you need to add both your keystore SHA1 and SHA56 as well as debug SHA1 and SHA256 to fireabse console.

That means two SHA1 and two SHA256

If the issue persists after changing your SHA1 and SHA256 make sure the following:

  1. Change the google-services.json file again.

  2. Delete the app in settings and add a new one with the right SHA1

If you haven't yet specified your app's SHA-256 fingerprint, do so from the Settings Page of the Firebase console. For more info read

For debug keys use to get the key, use ./gradlew signingReport or .\gradlew signingReport if in windows to get debug keys.

For release keys use to see the SHA1 and SHA256.

details here.
https://developers.google.com/android/guides/client-auth?authuser=1
Keystore explorer
here
here