Stay organized with collections
Save and categorize content based on your preferences.
When a user signs in with their Google Account in a web browser or on an
Android device, they can be seamlessly signed in across web browsers and
Android devices using the same Google Account. This feature allows users to
get the best experience out of multiple devices by making it
easier for them to sign in to your service.
When the button is loaded on the web, it immediately checks to see if the
user has authorized the application. This check is called "immediate mode"
and if successful, the Google servers return an access token and pass a new
authorization result object to the callback. If the button cannot make an
immediate-mode authorization, the user must click the sign-in button to
trigger the access flow.
To enable cross-platform single sign-on:
The Android and web app must be registered in the same
Google API Console project.
The requested scopes on each platform must match the scopes from other
platforms.
Cross-platform single sign-on works for the user when the following
requirements are met:
The user is signed in to Google in the browser or on the Android device.
The user has previously authorized your app for the same scopes.
This experience is similar to when a user opens an Android app the second
time. If the user previously authorized the app, then the user remains signed
in: users don't click the sign-in button every time they open the app.
When a user is seamlessly signed in, Google displays a reminder that they are
logged in using their Google Account. This reminder only appears
once per device.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["Google Sign-In library support is deprecated and will require using FedCM APIs in the future."],["Cross-platform single sign-on enables seamless sign-in across web and Android using the same Google Account, provided the user has previously authorized the app with matching scopes."],["Users will experience automatic sign-in if they have previously authorized the app, similar to using an Android app for the second time."],["Upon seamless sign-in, users will see a one-time reminder on each device indicating they are logged in with their Google Account."]]],[]]