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
When my app starts, a snapshot is started (using the onSnapshot() method) on the document containing the current's user data.
My issue is that when I restart the app, this snapshot will "sometimes" never return any value, even though there is a document.
The only solution then is to kill the app (double click on Home then swipe up the app screen) and start it again, then everything works fine again.
How I restart the app:
window.location.assign(window.location.origin);
Logs (the SDK's logs are mixed with the ones from my app, I removed the irrelevant ones from my app):
The log does show there is a user signing in, however, the logs around snapshot listeners are no there. Can you check if there are more logs?
If these are all the logs you have, is it possible for you to provide a mini-repo, along with instructions. I did a simple repo, and do not see the error.
Hey @olivierkrener. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.
If you have more information that will help us get to the bottom of this, just add a comment!
Since there haven't been any recent updates here, I am going to close this issue.
@olivierkrener if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.
Steps to reproduce:
When my app starts, a snapshot is started (using the
onSnapshot()
method) on the document containing the current's user data.My issue is that when I restart the app, this snapshot will "sometimes" never return any value, even though there is a document.
The only solution then is to kill the app (double click on Home then swipe up the app screen) and start it again, then everything works fine again.
How I restart the app:
window.location.assign(window.location.origin);
Logs (the SDK's logs are mixed with the ones from my app, I removed the irrelevant ones from my app):
Notes regarding the logs:
auth.onAuthStateChanged
is triggered with a valid user, hence the user is logged inThe text was updated successfully, but these errors were encountered: