Home Ask Login Register

Developers Planet

Your answer is one click away!

Zikooz February 2016

Firebase - Is there a way to see how many installed the application?

Parse was supporting the feature of Installations, I am not sure if firebase does it too. But after digging for a couple of hours in Google, I was not able to find something important on how I can see/count user installs in Firebase.

Is there a way to calculate user installs in Firebase or even there is another way to do instead ?


halfjew22 February 2016

There isn't an automatic way of doing this as far as I know, but it shouldn't be too difficult to implement yourself.

  1. Create a list of UUIDs of users who have installed your app
  2. Add a UUID for each user upon install in your Firebase database for whatever app you're concerned with tracking the users of.
  3. In that same block of code that you add the UUID of the current user, update another node in your Firebase database, perhaps called numUsers, with the size of the list of users.

Note that this will really show you number of installs on unique devices rather than users, unless you come up with a way to use the user's Google account or something similar and can guarantee that they don't have different accounts on different devices, etc, but it will get you a very good idea of how many total installs you have accumulated over time.

If you want to decrement the count when a user uninstalls your app, there is a very, VERY hacky way of doing this on Android where you listen to a certain file being removed, but I'm honestly not sure if that still works. However, hypothetically if you get that working, you would maybe be able to reach Firebase in time to decrement the count, I'm really not sure. You'd have to test this yourself. This is a different method of listening for uninstalls that has been accepted as an answer, but I have not tested it myself.

Post Status

Asked in February 2016
Viewed 3,014 times
Voted 7
Answered 1 times


Leave an answer

Quote of the day: live life