cordova Uncaught TypeError:无法读取属性' verifyPhoneNumber'未定义的

时间:2017-08-24 11:18:24

标签: cordova firebase firebase-authentication cordova-plugins cordova-plugin-fcm

我开发了cordova移动应用程序。我们发送otp到电话号码。所以我们使用firebase插件发送otp,然后我通过这个指导fcm plugin

我安装了这个插件

cordova插件添加cordova-plugin-firebase@0.1.21 --save

我有这个错误

未捕获的TypeError:无法读取属性' verifyPhoneNumber'未定义的

window.FirebasePlugin.verifyPhoneNumber("+91*********", timeOutDuration, function(credential) {
        console.log(credential);

           console.log('successfully login with phone no');
                    alert('successfully login')
    }, function(error) {
        console.error(error);
        alert(error)
    });

1 个答案:

答案 0 :(得分:0)

来自:https://javebratt.com/firebase-phone-authentication/

Jorge Vergara Mod Ankit Maheshwari•3个月前
你需要从repo中添加插件,如果你使用这个名称,那你就添加了尚未拥有该功能的官方插件。 https://github.com/jestcastro/cordova-plugin-firebase