离子原生google plus登录中的错误10 [英] Error 10 in ionic native google plus login
本文介绍了离子原生google plus登录中的错误10的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 ionic native google plus login
但在执行相同操作后出现错误 10.
I am using ionic native google plus login
but I am getting error 10 after doing the same.
下面是我的代码:-
doGoogleLogin(){
this.googlePlus.login({})
.then(res => {
this.router.navigate(['./tabs']);
this.userInfo = JSON.stringify(res);
console.log(res);
})
.catch(err =>{
console.log(err)
this.userInfo = JSON.stringify(err);
})
}
推荐答案
搜索 4 天后,我发现你必须做一些简单的步骤,仔细做.
After Searching 4 days i figured out you have to do simple steps do that carefully.
1首先检查你的离子版本
1 first check your ionic version
如果是离子 3
安装 Cordova 和 Ionic Native 插件:
Install the Cordova and Ionic Native plugins:
$ ionic cordova plugin add cordova-plugin-googleplus --variable REVERSED_CLIENT_ID=myreversedclientid
$ npm install --save @ionic-native/google-plus@4
将此插件添加到您的应用模块
Add this plugin to your app's module
2.转到 Google Cloude 控制台
2.go to Google Cloude Console
3.创建Auth2
4.添加您的应用 ID com.xxxxxx.xxxxxx
4.add your app id that com.xxxxxx.xxxxxx
这篇关于离子原生google plus登录中的错误10的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文