I\'d like to create a chat that has the feature to see if a user is online. I am using the didChangeAppLifecycleState to determine if the user closed the app, resumed the ap