我用这个cordova插件:
https://github.com/arnesson/cordova-plugin-firebase
我分叉这个插件上传我的GoogleService-Info.plist文件,配置我的firebase项目并将.p8 APNS密钥上传到firebase项目 .
但是当我使用时:
window.FirebasePlugin.verifyPhoneNumber(phoneNumber, timeOutDuration, function (credential) {
alert('credential: ' + credential);
alert('cr code: ' + credential.code);
}, function (error) {
alert('error: ' + error)
alert('error: ' + JSON.stringify(error));
});
也没有成功回调也没有失败的回调被称为 .
我也试试这个叉子:https://github.com/silverio/cordova-plugin-firebase
但没有任何作用