I am counting live users with firebase and .On Stop App block.
In this when user ‘home’ screen initialize then it save user online status ‘true’ and in .On Stop App block it save user online status ‘false’ but when I switch any other screen in app without close the present screen then also detect the user goes offline.
So please help me to solve this problem or suggest any other way for this problem.
when switching screen Don’t close the screen. just open another screen
This will crash app due to high RAM use
You can use TinyDB and Clock component to achieve what you are trying to
but I not close the home screen (On which the these blocks are present)
I open only another screen without closing home screen.
How ? Can you please give me some more details about this.