我被带到“ www.google.com”使用Google Cordova登录后 [英] I am taken to "www.google.com" after sign in with google cordova
问题描述
我正在尝试进行Google加上本地Firebase身份验证。当我单击登录按钮时,它要求我选择帐户,然后再选择。不用将我重定向到该应用程序,而是带我到 www.google.com
I am trying to do google plus native firebase authentication. When i click my login button it asks me to choose account and after that. Instead of redirecting me to the app it takes me to "www.google.com"
我尝试将其带到 www.google.com之后单击完成。 com。
然后关闭弹出窗口,并说用户取消了该操作。
请问
I have tried clicking "Done" after it takes me to "www.google.com". It then closes the popup and says "the user cancelled the operation". What do please
这是我的登录代码
googleNativeLogin() {
return new Promise((resolve, reject) => {
this.googlePlus.login(
{
'webClientId': 'XXXXXXXXXXXXX',
'scopes': '',
'offline': true
}
).then((response) => {
const googleCredential = firebase.auth.GoogleAuthProvider.credential(response.idToken);
firebase.auth().signInWithCredential(googleCredential)
.then((user) => {
this.presentToast(user)
resolve(user);
}).catch((err) =>{
reject(err);
});
}, (err) => {
reject(err);
this.presentToast(err)
});
})
}
我想在选择后重定向到该应用 一个帐户。我不想被带到 www.google.com
I want to be redirected to the app after i choose an account. I dont want to be taken to "www.google.com"
推荐答案
您好,我遇到了这个问题,这对我有所帮助我希望它也对您有用
https:/ /github.com/EddyVerbruggen/cordova-plugin-googleplus/issues/565#issuecomment-499862324
Hello I was facing this issue and this helped me out I hope it works for you too https://github.com/EddyVerbruggen/cordova-plugin-googleplus/issues/565#issuecomment-499862324
这篇关于我被带到“ www.google.com”使用Google Cordova登录后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!