Replies: 1 comment
-
|
This is known. Realtime will lose connection in background tabs and closed mobile devices because of power saving throttling done by the browser. You have to handle the situation with a restart and reload any potential missed data when the tab comes out of background. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello all,
I implemented a chat feature to my flutter app following https://supabase.com/blog/flutter-tutorial-building-a-chat-app.
It works great and I am able to see the realtime message coming through fine when the app is open.
However, if the app sits in the background for a period of time and comes back to foreground, I am only seeing the messages to the point when the app went to background. I am not seeing the new messages that were added while the app was in the background.
I am speculating that it has something to do with re-establishing the connection, but I am kind of stuck. Any help will be appreciated.
Here's my code snippet:
Beta Was this translation helpful? Give feedback.
All reactions