Reactjs 在谷歌登录cordova时显示错误代码:10?
我正在开发一个Cordova应用程序,需要使用Google登录,我使用了以下Cordova插件 现在我在Ios上测试了它的完美工作,当它来到安卓系统时,它显示了 警报:错误代码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
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);
}
);