How can I know the number of active people on my application

How can I know the number of active people on my application, for example, there are 10 people who use an application, but only 5
of them are active, how can I know that

Can this be done with firebase?

Create an account for each user on a database eg Firebase.

When a user opens the app make their account status active.

Get a list of all the active accounts to see how many people are using it.

When a user leaves the app change their status to inactive.

You don’t need to waste your Firebase Bandwidth with that. You only have to use an extension for Analytics like:

1 Like

@deanart2012
Can you explain to me how to line up the blocks so that I can get an effective result. If you have tried that before, of course