Home > Software engineering >  Get count of users who are using application in flutter
Get count of users who are using application in flutter

Time:01-29

I launched my android application and wanted to get the count of users who currently using my application. How can I get the count?

CodePudding user response:

You can do this by using a bool column or flag in a db. When a user is logged in and actively in the app, simply toggle their is_active value (or whatever you want to call it) to True. Then, in your app code, you sum up the number of rows in your db where is_active is True.

If you're using Firebase, here is the relevant documentation.

CodePudding user response:

add firebase to your project and you could get information like usercount, user device info, etc. Log in console.firebase.com to learn more.

  •  Tags:  
  • Related