Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

google_sign_in_web exception with deployed js file #52031

Open
robsonmeemo opened this issue Mar 5, 2020 · 4 comments
Open

google_sign_in_web exception with deployed js file #52031

robsonmeemo opened this issue Mar 5, 2020 · 4 comments
Labels
a: error message Error messages from the Flutter framework p: google_sign_in The Google Sign-In plugin P3 Issues that are less important to the Flutter project package flutter/packages repository. See also p: labels. team-ecosystem Owned by Ecosystem team triaged-ecosystem Triaged by Ecosystem team

Comments

@robsonmeemo
Copy link

The google_sign_in_web package works locally when I run my app with flutter run -d web-server. But after I flutter build web and deploy I get the following exception in chrome:

cb=gapi.loaded_0:163 Uncaught TypeError: t.gxp is not a function
    at Se.$1 (google_sign_in_web.dart:113)
    at Object.aom (js_helper.dart:1062)
    at Object.ae9 (core_patch.dart:85)
    at aqG (js_patch.dart:542)
    at js_patch.dart:520
    at e.wo (cb=gapi.loaded_0:175)
    at kk (cb=gapi.loaded_0:178)
    at fk (cb=gapi.loaded_0:178)
    at _.Qj.qU (cb=gapi.loaded_0:178)
    at Nj (cb=gapi.loaded_0:169)
@robsonmeemo
Copy link
Author

So I was able to figure out this was an issue with the authorized urls. But I think the bug is still relevant as the exception that the library tries to throw fails with the error above.

@TahaTesser TahaTesser added a: error message Error messages from the Flutter framework p: first party p: google_sign_in The Google Sign-In plugin labels Mar 6, 2020
@klapauciusisgreat
Copy link

Can you elaborate what the issue with authorized urls was ? I seem to have run into the same issue, but the problem only manifests itself on the firebase deployment on Chrome. no exceptions on Safari or in a local sandbox.

@robsonmeemo
Copy link
Author

On the google side you have to register which urls are allowed to start the sign-in process. I had a typo in that configuration.

@klapauciusisgreat
Copy link

Yeah, I had registered them and still got the exception. It turns out you get this exception also when 3rd party cookies are blocked. Really annoying that the exception is so obfucated. And that Google signin requires 3rd party cookies.

@stuartmorgan stuartmorgan added the P3 Issues that are less important to the Flutter project label Apr 7, 2021
@flutter-triage-bot flutter-triage-bot bot added the package flutter/packages repository. See also p: labels. label Jul 5, 2023
@Hixie Hixie removed the plugin label Jul 6, 2023
@flutter-triage-bot flutter-triage-bot bot added team-ecosystem Owned by Ecosystem team triaged-ecosystem Triaged by Ecosystem team labels Jul 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a: error message Error messages from the Flutter framework p: google_sign_in The Google Sign-In plugin P3 Issues that are less important to the Flutter project package flutter/packages repository. See also p: labels. team-ecosystem Owned by Ecosystem team triaged-ecosystem Triaged by Ecosystem team
Projects
None yet
Development

No branches or pull requests

5 participants