Skip to content

[google_sign_in] Switch Android to Credential Manager #154205

Closed
flutter/packages
#9267

Description

Use case

Google Sign-In for Android is deprecated and will be removed from the Google Play Services Auth SDK. (com.google.android.gms:play-services-auth) in 2025

Proposal

there's already a community package but having an official one would be better, since it's such core concern

Activity

  1. added
    in triagePresently being triaged by the triage team
    c: new featureNothing broken; request for a new capability
    platform-androidAndroid applications specifically
    packageflutter/packages repository. See also p: labels.
    c: proposalA detailed proposal for a change to Flutter
    and removed
    in triagePresently being triaged by the triage team
    on Aug 28, 2024
  2. Sliman-Baghouri commented on Sep 8, 2024

    @Sliman-Baghouri

    Yes now the only way to do it is via custom method channels or using 3rd party community plugin, it would be nice to have an official source

  3. added
    P1High-priority issues at the top of the work list
    fyi-androidFor the attention of Android platform team
    on Sep 10, 2024
  4. stuartmorgan-g commented on Sep 13, 2024

    @stuartmorgan-g
    Contributor

    Based on this blog post Google Sign-In for Android will be removed in H2 2025 specifically.

    • I am hoping to publish a wrapper plugin in early (Q1) 2025, with the goal of having it be a replacement backend for the google_sign_in plugin (although we may publish a direct wrapper separately as well). This is likely to be paired with significant changes to the google_sign_in APIs, since every platform now has a different recommended underlying, so the current API may not be a good match (see [google_sign_in] Rework google_sign_in to reflect changes in underlying SDKs #119300)
    • We will definitely have something ready in advance of H2 2025.
  5. changed the title [-]officially support android jetpack credential manager[/-] [+][google_sign_in] Switch Android to Credential Manager[/+] on Sep 13, 2024
  6. 5 remaining items

  7. stuartmorgan-g commented on Jan 17, 2025

    @stuartmorgan-g
    Contributor

    This is still planned for Q1.

  8. removed
    ⏳Bot is counting down the days until it unassigns the issue
    on Jan 17, 2025
  9. stuartmorgan-g commented on Mar 24, 2025

    @stuartmorgan-g
    Contributor

    #119300 (comment) has a link to the design document that will be part of this transition. Unfortunately, after investigation, it is not possible to use CredentialManager to build a fully compatible replacement for the deprecated SDK, so just replacing the backend of the current API as a short-term transition isn't viable. (A semi-compatible shim is possible, but not one that could be released as a non-breaking change.)

    As a note on adoption timelines, while Google Sign-In for Android will be removed from new versions of the com.google.android.gms:play-services-auth later this year, as noted in the link in the issue description, the service itself will continue to work past that point. This means that existing versions of the google_sign_in plugin will continue to work past the SDK removal point, so long as applications using it don't have other dependencies on new versions of com.google.android.gms:play-services-auth, so the SDK-level removal should not be a hard deadline on most clients adopting the new version of google_sign_in with its breaking changes.

    The expectation is still that we will have the new version of google_sign_in available in advance of the removal from the SDK, however, so that adoption can begin before even edge cases could see compilation issues.

  10. fan123199 commented on Apr 29, 2025

    @fan123199

    Is there any further status update? Q1 ended nearly a month ago. While the existing sign-in works, the new credential manager significantly shortens the sign-in flow on Android. I really don't want the sign-in experience in Flutter is worse than native Android.

  11. stuartmorgan-g commented on May 2, 2025

    @stuartmorgan-g
    Contributor

    If anyone wants to try an in-progress version of the new implementation based on CredentialManager, please see this comment

  12. ycv005 commented on May 17, 2025

    @ycv005
  13. github-actions commented on Jul 9, 2025

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  14. locked as resolved and limited conversation to collaborators on Jul 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

P1High-priority issues at the top of the work listc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterfyi-androidFor the attention of Android platform teamp: google_sign_inThe Google Sign-In pluginpackageflutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyr: fixedIssue is closed as already fixed in a newer versionteam-ecosystemOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions