sajTempler / IonicFirebasePhoneAuth

13 stars 8 forks source link

For Ionic 4 check the branch ionic_4 - working version

Project setup:

You will need your project from Firebase Console.

  1. Copy your credentials (click for Web in console) and create src/app/env.config.ts
  2. In Authentication tab in Firebase Console go to login methods and turn on Phone Auth
  3. Optional. Add test phone number in Firebase Console
  4. Add your application. Make sure your package ID match the one in Firebase Console - e.g. com.ionicfirebasephoneauth.demo
  5. Add SHA-1 blueprint - important!
  6. Download google-services.json and paste it in root folder of project
  7. Run app with ionic cordova run android --device

Notes

Written with StackEdit.