Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/reactjs/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Reactjs 在谷歌登录cordova时显示错误代码:10?_Reactjs_Cordova_Google Login - Fatal编程技术网

Reactjs 在谷歌登录cordova时显示错误代码:10?

Reactjs 在谷歌登录cordova时显示错误代码:10?,reactjs,cordova,google-login,Reactjs,Cordova,Google Login,我正在开发一个Cordova应用程序,需要使用Google登录,我使用了以下Cordova插件 现在我在Ios上测试了它的完美工作,当它来到安卓系统时,它显示了 警报:错误代码10,卡滞且不稳。。 下面的代码用于谷歌登录 googleplusapi() { alert("google") window.plugins.googleplus.login( { 'scopes': '', // optional, space-separ

我正在开发一个Cordova应用程序,需要使用Google登录,我使用了以下Cordova插件 现在我在Ios上测试了它的完美工作,当它来到安卓系统时,它显示了 警报:错误代码10,卡滞且不稳。。

下面的代码用于谷歌登录

googleplusapi() {
       alert("google")
       window.plugins.googleplus.login(

       {
         'scopes': '', // optional, space-separated list of scopes, If not included or empty, defaults to `profile` and `email`.
        'webClientId': '816731629411-rsv37372o75vqu6kdfmd701abmd67el2.apps.googleusercontent.com', // optional clientId of your Web application from Credentials settings of your project - On Android, this MUST be included to get an idToken. On iOS, it is not required.
         'offline': true, // optional, but requires the webClientId - if set to true the plugin will also return a serverAuthCode, which can be used to grant offline access to a non-Google server
       },
       function (obj) {
         alert(JSON.stringify(obj));
       },
       function (msg) {
         alert('error: ' + msg);
       }


     );