第三方登录支持
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本指南介绍了如何使用 CustomTabsIntent
支持第三方登录。
网页 URI intent
Google Play 游戏电脑版会将所有常规网页 Uri intents
重定向到默认的 Windows 浏览器,以提供优化的用户体验。游戏不会从默认的 Windows 浏览器接收任何信息,因此您无法通过此流程支持用户通过第三方登录或社交平台登录。
CustomTabsIntent
不过,Google Play 游戏电脑版支持常用第三方登录方法,这些方法通过使用 CustomTabsIntent
对象运作,这样一来,开发者提供的用户登录端应该就不会有任何变化。
如果您想注册新的登录网站,请与您的 Google 联系人联系。
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-09-19。
[null,null,["最后更新时间 (UTC):2023-09-19。"],[],[],null,["# Third-party login support\n\nThis guide describes how to use\n[`CustomTabsIntent`](/reference/androidx/browser/customtabs/CustomTabsIntent)\nto support third-party logins.\n\nWeb Uri intent\n--------------\n\nGoogle Play Games for PC redirects all regular web\n[`Uri intents`](/guide/components/intents-common#Browser) to the default Windows\nbrowser for an optimized user experience. Games don't receive any information\nback from the default Windows browser, so this flow doesn't allow you to login\nusers via a third-party login or a social platform.\n\nCustomTabsIntent\n----------------\n\nHowever, Google Play Games for PC allows popular third-party login methods to\nwork using\n[`CustomTabsIntent`](/reference/androidx/browser/customtabs/CustomTabsIntent)\nobjects such that no changes are expected on developers' end for user login.\n\nIf you want to register a new login site, you should reach out to your Google\ncontact."]]