Count the number of app user today, every 1 day reset

Help me everyone, so necessary!
I want to create code to count the number app user opening. Example: I open my app, plus 1. My friend open my app in another phone, plus 1. My sister can see 2 user has opened in her phone.

You can do this using firebase realtime database.

Create a tag in firebase as active users and store value 0.

When a user open app then get the number of active user value + 1 and store updated value in firebase again.

When user pauses the app or stop app then do minus 1 and store updated value.

On resume app you can update value again with +1.

This may not give 100% accuracy but it works.

1 Like

can u guide detailly?