Recent breakage of google-sign-in with flutter on Chrome? - firebase

As of 1 day ago, I seem to have trouble with google sign in running inside a flutter app on firebase.
When loading the webapp, I see an exception with obfuscated stack traces:
Uncaught TypeError: t.gpT is not a function
at Im.$1 (google_sign_in_web.dart:113)
at Object.a4P (js_helper.dart:1060)
at Object.Yq (core_patch.dart:84)
at a6F (js_patch.dart:541)
at js_patch.dart:519
at e.zo (cb=gapi.loaded_0:200)
at lk (cb=gapi.loaded_0:203)
at gk (cb=gapi.loaded_0:203)
at _.Rj.hU (cb=gapi.loaded_0:203)
at Qj (cb=gapi.loaded_0:195)
This happens when deploying on firebase and on Chrome, not when running on localhost (same chrome), or when using the firebase deployment on Safari.
I'm properly stumped - I don't remember having upgraded the browser or changing anything in the code. Neither do I remember having fiddled with the oauth tokens.
Any ideas how to properly debug this ? I'm fairly inexperienced in dart/firebase/JS.
[Update]: I found that I can reproduce this even with the Google provided example at:
https://github.com/flutter/plugins/tree/master/packages/google_sign_in/google_sign_in/example
This works when I run it with flutter run -d chrome or flutter run -s web-server
When I do a firebase deploy, the app runs fine in Safari. In Chrome I get above exception. I tried to disable all extensions, same thing.

Aha! The culprit here was blocking of third party cookies. If I turn off third party cookie blocking, things work fine.
Yikes, this makes using Google-sign-in unusable for webapps whose customers are blocking third party cookies.

Related

Getting "Somthing went wrong" when trying to login my CLI into Firebase

I'm coming back into using Firebase after about 2 years, and now I'm having trouble trying to login my CLI into Firebase (yes, I have installed npm i -g firebase-tools). I've tried 3 different commands for it, all of them result in one of the images below:
firebase login
firebase login:ci
firebase login:ci --no-localhost
Here is the result, after I allow Firebase CLI to integrate with my account:
I had already tried this 1 month ago on a Windows machine, but now I'm getting it again on my ArchLinux. Does anyone even have a clue about what's going on? I am logged in successfully on the browser, so I guess it's a problem on Google's end, with an incredibly generic error message.
Just found out someone else has had the same problem yesterday.
I've also registered this as a bug on the respective repo on Github.
And here is what appears on my Inspector's Console, 2 improvement issues:
I don't know why or how, but opening the link through Chrome (or another browser?) actually worked. I was opening it through Brave, thinking that, since both are based on the Chrome engine, nothing would change.
Try using the incognito mode or private tab. I was using Firefox and I get this error. But it worked when I tried in a Private tab.

Trying to login into the Firebase CLI with Google account returns 'Something went wrong' [duplicate]

I'm coming back into using Firebase after about 2 years, and now I'm having trouble trying to login my CLI into Firebase (yes, I have installed npm i -g firebase-tools). I've tried 3 different commands for it, all of them result in one of the images below:
firebase login
firebase login:ci
firebase login:ci --no-localhost
Here is the result, after I allow Firebase CLI to integrate with my account:
I had already tried this 1 month ago on a Windows machine, but now I'm getting it again on my ArchLinux. Does anyone even have a clue about what's going on? I am logged in successfully on the browser, so I guess it's a problem on Google's end, with an incredibly generic error message.
Just found out someone else has had the same problem yesterday.
I've also registered this as a bug on the respective repo on Github.
And here is what appears on my Inspector's Console, 2 improvement issues:
I don't know why or how, but opening the link through Chrome (or another browser?) actually worked. I was opening it through Brave, thinking that, since both are based on the Chrome engine, nothing would change.
Try using the incognito mode or private tab. I was using Firefox and I get this error. But it worked when I tried in a Private tab.

Flutter WebApp, deployed in Firebase stops accepting user input

My Flutter app that has a login page is fully functional on Android, iPhone and Web.
The problem is with the WebApp - immediately after I deploy it into the Firebase, it works well, as expected. However, if I leave it and come back to it in several hours, and try to open another window - neither text fields nor mouse user entry are accepted any longer. If I then rebuild the app and redeploy it, it starts working, for a while.
I use flutter version 2.10.5 and Dart version 2.16.2.
Flutter doctor -v produced no errors or warnings.
Has anyone experienced this sort of behaviour?

Installations: Could not process request. Application offline. (installations/app-offline) error with firebase

I am getting an error when trying to run my application locally:
I am only getting this error in the chrome browser. I have tried different things, but I am not sure why it is Chrome specific.
I suspect this isn't a Firebase issue, but rather a Chrome one. My Chrome for Android the last day or two has been acting up and saying it's offline when it isn't, which I suspect is leading to navigator.onLine to be false. This would lead Firebase to throw this error, for example during auth token refresh: https://github.com/firebase/firebase-js-sdk/blob/7d916d905ba16816ac8ac7c8748c83831ff614ce/packages/installations/src/helpers/refresh-auth-token.ts#L60-L62
My app works fine on localhost on Chrome for Mac 87.0.4280.88, but is throwing this error on Chrome for Android 8.0.4280.101, Android 11.

Meteor login not working on mobile

I am working on a simple mobile web app and I am having trouble logging in...
I followed this little sample on making a custom login: http://blog.benmcmahen.com/post/41741539120/building-a-customized-accounts-ui-for-meteor
Nothing too tricky here.
So I run my meteor server locally. On my computer, through the browser, I can log in and create accounts -- no problem.
When I go to my local IP from my iPhone, the website successfully loads but for some reason I am not able to login or create accounts.
I have noticed that for Meteor.loginWithPassword and Meteor.createUser, the callback function NEVER gets called. I have {{loggingIn}} rendering a loading screen and the loading screen is only there for a fraction of a second before the form is reloaded. No errors are thrown (validation passes and the callback function doesnt fail).
Out of suspicion, I deployed the app and tried accessing the deployed website from my phone and the same issue persists...
Any ideas what I cannot log in or create accounts on my iPhone, but I can on my computer? Maybe its a cookies thing? Any ways of solving this?
Thanks a lot,
Chet
Edit:
This works on both my desktop browser and iPhone simulator. Just not my iPhone. Could it just be a local network issue? -- No, even if I deploy the website, I have the same issues...
Also, check out my github post about recreating the issue:
https://github.com/ccorcos/meteorPasswordMobileError
Check to make sure that you are running the same version of iOS on all the devices you are testing on. I have seen iOS 7 misbehave when using Meteor apps. iOS 6 works just fine.

Resources