Ionic Firebase应用中的Google身份验证

时间:2017-03-21 19:49:43

标签: firebase ionic-framework google-oauth firebase-authentication google-authentication

我正在开发一个带有firebase集成的离子应用程序。对于google身份验证signInWithPopup,我按照提到here。它可以在浏览器中运行,但应用程序在Android 4.2和Android 5中崩溃会出现错误消息'disallowed_useragent'重定向到this链接。

链接中提到的库是针对本机Android应用程序的。如何在离子中实现这一点?

1 个答案:

答案 0 :(得分:0)

这是因为Google不再允许在您的平台上使用称为“网络视图”的嵌入式浏览器中的更多OAuth请求。

在这里,您可以阅读完整的沟通内容:https://developers.googleblog.com/2016/08/modernizing-oauth-interactions-in-native-apps.html