I want to use cordova-plugin-firebase for phone verification.
I add the plugin as ionic doc, add google-service.json to my project, but when build for android it gives me the following error. I can build the project but when I call verifyPhoneNumber(phoneNumber, timeoutDuration) function, my app crash in my android device.
Preparing Firebase on Android
{ Error: ENOENT: no such file or directory, open 'D:\node\ionic\smsVerificationplatforms\android\res\values\strings.xml'
After downloading the plugin change the ANDROID_DIR variable in the after_prepare.js file, which is in the scripts folder.
From ANDROID_DIR = 'platforms/android' TO ANDROID_DIR = 'platforms/android/app/src/main'.
thanks @Shals08 your solution did the trick!
@Shals08 Thanks very much. It's awesome.
@Shals08 Thanks
ALLOW ME TO USE CAPITAL LETTERS:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! YOU SAVED THE DAY, MAN (@Shals08 ) !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
please try again with version 1.0
Thanks @Shals08
Most helpful comment
After downloading the plugin change the ANDROID_DIR variable in the after_prepare.js file, which is in the scripts folder.
From ANDROID_DIR = 'platforms/android' TO ANDROID_DIR = 'platforms/android/app/src/main'.