Android 成功登录后,cordova插件googleplus插件没有回调
googleplus登录在我的ionic应用程序中使用cordova插件googleplus给了我一个问题。登录后,不会调用成功回调Android 成功登录后,cordova插件googleplus插件没有回调,android,cordova,cordova-plugins,google-plus-signin,Android,Cordova,Cordova Plugins,Google Plus Signin,googleplus登录在我的ionic应用程序中使用cordova插件googleplus给了我一个问题。登录后,不会调用成功回调 window.plugins.googleplus.login( { 'scopes': 'email profile', 'webClientId': '**********', 'offline': true, }, fun
window.plugins.googleplus.login(
{
'scopes': 'email profile',
'webClientId': '**********',
'offline': true,
},
function (obj) {
alert('login success');
//... user service called
},
function (msg) {
alert('error: ' + msg);
}
);
在上面的代码段中,两个警报都未调用。当我检查adb logcat日志时,我发现登录成功:
D/CordovaActivity( 1614): Incoming Result. Request code = 77552
D/CordovaInterfaceImpl( 1614): Sending activity result to plugin
I/GooglePlugin( 1614): In onActivityResult
I/GooglePlugin( 1614): One of our activities finished up
I/GooglePlugin( 1614): Handling SignIn Result
I/GooglePlugin( 1614): trying to get account information
W/CordovaPlugin( 1614): Attempted to send a second callback for
ID: *************
W/CordovaPlugin( 1614): Result was: {**** correct user info ****}
同样有趣的是,window.plugins.googleplus.trySilentLogin工作正常。
我使用的是android物理设备,还有facebook插件等
任何解决这个问题的指针都会很好。我使用这个插件,只是删除了它
'webClientId': '**********',
'offline': true,
因此,该插件可以正常工作。您有解决方案吗?