OTP verification by firebase in ionic.
Do the following in order :
- download the clone of this directory.
- Make a firebase account goto firebase console and add an new project
- run this command to know the SHA1 key : keytool -list -v -keystore %USERPROFILE%/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
- After that configure the firebase project (Make sure your package name should be same as id of config.xml in project repository).
- Download google-services.json file from firebase and copy it in root directory of project.
- Goto app.module file in project directory, Here is a commented line to remove this error do the following : a. Goto firebase project > Project Overview > Add App > Add firebase to your web app copy the config variable b. Paste the config variable into the app.module file.
- run following command after connecting your phone: ionic cordova run android
- Goto chrome type "chrome://inspect" into url bar and then inspect you device
- As you run the app check the console of chrome.