Я разрабатываю проект Cordova и хочу пройти аутентификацию в firebase, используя номер телефона. Я использую этот плагин: https://github.com/arnesson/cordova-plugin-firebase а>
но это не работает и принудительно останавливается, когда я использую
window.FirebasePlugin.verifyPhoneNumber("my phone number", timeOutDuration, function(credential) {
console.log(credential);
firebase.auth().signInWithCredential(signInCredential);
}, function(error) {
console.error(error);
});
а также, когда я использую метод ниже, это вообще не работает:
window.FirebasePlugin.getVerificationID("my phone number",function(id) {
console.log("verificationID: "+id);
}, function(error) {
console.error(error);
});
Что не так с моим кодом? Что я могу сделать? Есть ли другой плагин для аутентификации телефона в Кордове?