You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our users regularly report the issue that they are not being automatically logged into our mobile app even if they were before. It commonly takes exactly 30 seconds until the auto-login actually happens.
This doesn't happen on every login, but it's annoying once it does happen.
I added logging to the whole process and noticed that the delay comes from the onSnapshot call on our user document. Here's how the code at this point currently looks like:
Operating System
iOS 18.1.1
Environment (if applicable)
Ionic / Capacitor
Firebase SDK Version
10.14.1
Firebase SDK Product(s)
Firestore
Project Tooling
Nuxt Ionic mobile app with Capacitor
Detailed Problem Description
Our users regularly report the issue that they are not being automatically logged into our mobile app even if they were before. It commonly takes exactly 30 seconds until the auto-login actually happens.
This doesn't happen on every login, but it's annoying once it does happen.
I added logging to the whole process and noticed that the delay comes from the
onSnapshot
call on our user document. Here's how the code at this point currently looks like:Once the bug happens, the
snapshotInitiationDuration
is most often pretty much exactly at 30 seconds.Here are the (relevant) debug logs (taken from Sentry, some details redacted):
As you can see, there is this big time gap between running
onSnapshot
and actually retrieving the document.Steps and code to reproduce issue
Unfortunately, I wasn't able to consistently reproduce the issue, and therefore, I'm relying on logging other users' experiences.
The text was updated successfully, but these errors were encountered: