emberfire-phone-cordova
v0.0.1
Published
Emberfire provider for Authenticate with Firebase with a Phone Number in Cordova application
Downloads
12
Maintainers
Readme
emberfire-phone-cordova
Emberfire provider for Authenticate with Firebase with a Phone Number for Cordova application.
NOTE: To use this auth you need to configure your app SHA hash in the android app configuration on firebase console. See https://developers.google.com/android/guides/client-auth to know how to get SHA app hash.
NOTE: This will only works on physical devices.
Installation
Install this addon
ember install emberfire-phone-cordova
Install this fork of cordova plugin for firebase
ember cdv:plugin add "https://github.com/jestcastro/cordova-plugin-firebase.git"
Using phone auth provider
this.get('session').open('emberfire-phone-cordova', {
phoneNumber: '+14155552671'
});
phoneNumber
- The user's E.164 formatted phone number
Running
ember cdv:build --platform=android --environment=production
- Open Android project in Android studio from
ember-cordova/cordova/platforms/android
- Build android application and deploy to your physical android device
Building
ember build
For more information on using ember-cli, visit https://ember-cli.com/.