android - @googlemail.com 帐户无法使用 GoogleSignIn 进行身份验证,但 @gmail.com 帐户可以
问题描述
最近我收到一些用户反馈,无法登录 google 帐户访问我的应用程序中的 Google Drive 应用程序数据。发现他们都使用@googlemail.com 电子邮件地址。经过测试,@googlemail.com 帐户在加载页面(屏幕记录波纹管)处停止。但是@gmail.com 帐号没有打开这个页面并登录成功。
GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
.requestScopes(new Scope(Scopes.DRIVE_APPFOLDER))
.requestEmail()
.build();
GoogleSignInClient mGoogleSignInClient = GoogleSignIn.getClient(MainActivity.this, gso);
Intent signInIntent = mGoogleSignInClient.getSignInIntent();
startActivityForResult(signInIntent, RC_SIGN_IN);
解决方案
推荐阅读
- r - 在 R data.frames 中提取具有常数的列
- java - SQL 从很长的值列表中选择
- python - 如何使用 QSortFilterProxyModel 对浮点值进行排序?
- xcode - 在 Xcode 11.1 中启动屏幕后 Flutter iOS 应用程序崩溃
- r - 根据另一列中的值创建计数连续变量
- arrays - 将元素正确放置在升序数组中
- javascript - 如何以编程方式显示 Chakra-UI Toast?
- sql - 如何在 Teradata SQL 中的多个表的 JOIN ON 语句中确定 OR 顺序并考虑 NULL 的优先级?
- python - 将 chess-svg 纹理集成到 kivy 对象中
- python - 如何检查日期列在熊猫中的特定月份?