Firebase - .onDisconnect does not trigger when application is in recent app section
Clash Royale CLAN TAG #URR8PPP Firebase - .onDisconnect does not trigger when application is in recent app section I am using '.info/connected' to check whether the user is online in my application and .onDisconnect to set if the user has disconnected from the app. However, for both iOS and Android, if the application is minimized, without being closed(it is in recent apps section), .onDisconnect will not get triggered. '.info/connected' .onDisconnect .onDisconnect How can I handle this case so that the user status is not online if the app is minimized without being closed? Quick answer on how the system works below. If that doesn't help enough, please edit your question to include the minimal code that reproduces the problem. It'll help us understand how you're using .info/connected . – Frank van Puffelen 23 mins ago ...