0
When trying to authenticate the iOS device sending the phone number to receive an ID that will check the device with the code received via sms, with Firebase as shown below:
this.firebaseAuthentication.verifyPhoneNumber(telfone, 0) .then((res: any) => {
return res;
}) .catch((error: any) => {
console.error(error);
return "";
});
The error is generated:
To Native Cordova -> FirebaseAuthentication setAuthStateChanged
FirebaseAuthentication277442582 ["options": [0]]
2020-11-05 11:41:42.011756-0300 App[64227:1122229] CDVPlugin class
FirebaseAuthenticationPlugin (pluginName: firebaseauthentication) does not exist.
Error: Cordova Plugin mapping not found
Where I don’t even get the SMS with the device verification code or ID. Has anyone ever had the same problem or knows the solution?
OBS: It is an application made with Ionic, and compiled with Capacitor for both platforms, for the android version is working normally, the problem only occurs on iOS.