我开发一个项目科尔多瓦,我想验证使用的电话号码火力地堡。我使用这个插件: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);
});
什么是错我的代码?我能做什么?有另一种插件,在科尔多瓦电话权威性?
基于此发现的文件上:https://github.com/firebase/firebaseui-web#introduction好像目前不支持科尔多瓦。