Skip to content

[Google_sign_in] Consider removing the objc exception handler from the plugin #193464

Closed
flutter/packages
#13156

Description

@LongCatIsLooong

Extracted from: https://github.com/flutter/packages/pull/12658/changes#r4018994922

Do we actually need ExceptionCatcher.m?

From what I see, the only exceptions the SDK ever throws are invalid arguments:

Missing GIDClientID, which means the app hasn't been configured correctly and won't work (can't happen unexpectedly in the wild for an app; it's a deterministic failure that can only happen if the app was build wrong).
Missing URL scheme handling, same restrictions.
Missing clientID, same restrictions.
Missing view controller, which appears to only be possible if we pass a null view controller into a non-nullable parameter, which a) would be a plugin bug, and b) is something we would have to try very hard to screw up with a Swift implementation of the plugin.
So AFAICT, the three that could happen to clients are all cases where the client built their app incorrectly, and would be found by the client with any testing of the login path. Is it actually worth keeping the plugin hybrid language forever just to make that category of error bubble up to Dart instead of crashing?

Activity

  1. LongCatIsLooong commented on Sep 28, 2026

    @LongCatIsLooong
    ContributorAuthor

    Also /cc @cbracken for opinions

  2. added
    in triagePresently being triaged by the triage team
    packageflutter/packages repository. See also p: labels.
    fyi-ecosystemFor the attention of Ecosystem team
    team-iosOwned by iOS platform team
    and removed
    in triagePresently being triaged by the triage team
    on Sep 29, 2026
  3. cbracken commented on Oct 1, 2026

    @cbracken
    Member

    This proposal seems reasonable to me.

  4. added
    P2Important issues not at the top of the work list
    triaged-iosTriaged by iOS platform team
    on Oct 1, 2026
  5. jmagman commented on Oct 1, 2026

    @jmagman
    Member

    @victogomez-cs can you add this follow-up to flutter/packages#12658 to your pile of google_sign_in work?

  6. github-actions commented on Oct 27, 2026

    @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.

  7. locked as resolved and limited conversation to collaborators on Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listp: google_sign_inThe Google Sign-In pluginpackageflutter/packages repository. See also p: labels.team-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions