User count (that will make the user offline even if the user close the app using the home button on their phone))

hi im making user count (that will make the user offline even if the user close the app using the home button on their phone) but i dont know how to use after activity changed

Show your firebase structure

This post was flagged by the community and is temporarily hidden.