1
我想在我的离子2 + 3火力地堡的应用程序中使用signInWithPopup!它在桌面浏览器上效果很好,但是,当我为Android生成APK时,它会在弹出窗口出现之前在auth.js中引发网络错误。然后,我输入凭据,然后出现应用程序的空白屏幕。在此先感谢signInWithPopup并不适用于Android(离子型2 +火力地堡3)
var provider = new firebase.auth.GoogleAuthProvider();
firebase.auth().signInWithPopup(provider).then(function(result) {
// This gives you Access Token. You can use it to access the Google API.
this.navCtrl.push(WriteReviewPage);
// ...
}).catch(function(error) {
alert(error.message);
});
}
你好,很抱歉把这个问题了,但问题得到解决,否则我们还是要用你链接的解决方法吗? – User999
嘿@MarinaCooper他们增加了对科尔多瓦支持的应用:https://firebase.google.com/docs/auth/web/cordova 但在使用本地插件我的经验效果最好,它为用户呈现更好的体验他们是账户选择器,以便他们可以登录,让他们通过浏览器登录。 – javebratt