如何添加Google登录与混合移动应用程序的“选择帐户”选项? [英] How to add 'Choose an account' option of google sign-in with hybrid mobile app?

查看:176
本文介绍了如何添加Google登录与混合移动应用程序的“选择帐户”选项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用cordova构建的混合移动应用程序。最近,我已将Google登入功能纳入其中。但是,我面临的一个问题是,即使我的本机gmail应用程序连接到3其他Gmail帐户...它不显示我的选择一个帐户选项像其他移动应用程序显示。



EX:





我的一个想法是,也许是因为我的应用程序是一个混合应用程序,它无法访问本地Gmail帐户会话。这就是为什么,它不显示我的选择。



我是对吗?如何解决这个问题?

解决方案

我不知道你如何在你的应用程序中实现google登录。要显示选择帐户对话框,您必须使用 Cordova Google插件。通过使用这个,它会调用谷歌帐户链接到你的Android手机和对话框,就像你说的会出现。



希望它会满足你的要求。 >

I've a hybrid mobile app which has built using cordova. Recently, I've included Google Sign-in feature into this. But, one issue which I'm facing is, even if my native gmail app connected to 3 other gmail accounts... it's not showing me the... "Choose an account" option like other mobile app shows.

EX :

One of my thought is, maybe because of my app is a hybrid app it's not getting access to native gmail accounts session. That's why, it's not showing me the option.

Am I right? How I can solve this problem ?

解决方案

I don't know how you implemented google login in your app. For displaying the choose account dialog box, you have to use Cordova Google plugin. By using this, it will call the google accounts linked to your android phone and the dialog box like you said will appear.

Hope it will meet your requirement.

这篇关于如何添加Google登录与混合移动应用程序的“选择帐户”选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆