第三方登入支援
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
本指南將說明
CustomTabsIntent
敬上
以支援第三方登入。
Web URI 意圖
Google Play 遊戲電腦版會將所有一般網頁重新導向
將 Uri intents
設為預設 Windows
帶來最佳使用者體驗。遊戲沒有收到任何資訊
返回預設 Windows 瀏覽器,因此無法透過這個流程登入
透過第三方登入或社交平台
向使用者提供資訊
CustomTabsIntent
不過,Google Play 遊戲電腦版允許使用 CustomTabsIntent
物件啟用常見的第三方登入方式,這樣開發人員也不必為了讓使用者登入而做出任何變更。
如要註冊新的登入網站,請與您的 Google 聯絡窗口聯繫。
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-07-27 (世界標準時間)。
[null,null,["上次更新時間:2025-07-27 (世界標準時間)。"],[],[],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."]]