Firebase-有没有办法查看安装了多少个应用程序? [英] Firebase - Is there a way to see how many installed the application?

查看:55
本文介绍了Firebase-有没有办法查看安装了多少个应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Parse支持安装功能,我不确定firebase是否也支持.但是,在Google搜寻了几个小时后,我无法找到有关如何查看/计算Firebase中用户安装的重要信息.

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.

是否有一种方法可以计算Firebase中的用户安装量,甚至还有另一种方法?

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

推荐答案

据我所知,并没有一种自动的方法,但是实现自己应该不会太困难.

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. 创建已安装您的应用的用户的UUID列表
  2. 在Firebase数据库中安装后,为每个用户添加一个UUID,用于与您关注的用户相关的任何应用程序.
  3. 在添加当前用户的UUID的同一代码块中,使用用户列表的大小更新Firebase数据库中的另一个节点(也许称为numUsers).

请注意,这确实会向您显示在唯一设备而非用户上的安装次数,除非您想出一种使用用户的Google帐户或类似方式的方法,并且可以保证他们在不同设备上没有不同的帐户,等等,但是随着时间的推移,您可以很好地了解累计的安装总数.

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.

如果您想在用户卸载应用程序时减少计数,那么在Android上您可以通过一种非常非常hacky的方式来监听特定文件被删除的情况,但是老实说,我不确定是否仍然如此作品.但是,假设如果您能正常工作,您将也许能够及时到达Firebase以减少计数,我真的不确定.您必须自己进行测试.这是侦听卸载的另一种方法已被接受为答案,但我自己尚未对其进行测试.

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.

这篇关于Firebase-有没有办法查看安装了多少个应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆