我想知道有多少我的应用用户购买了“高级升级”。
高级升级可以通过应用程序内购买一次性购买。 boolean
值由 Google Play 存储在设备上。我希望在 Firebase 中看到该“值(value)”。
我想过设置一个名为 Premium 的用户属性,但找不到如何将值设置为 true
或 false
.
这是正确的方法吗,或者对于 boolean
值是否有更好的方法?
最佳答案
您的帖子表明高级升级是应用内购买。在这种情况下,请考虑使用 Firebase Analytics .一个event is generated对于应用内购买:
When a user completes an in-app purchase that is processed by the App Store on iTunes or Google Play. The product ID, product name, currency, and quantity are passed as parameters.
有关购买的统计信息汇总在 Analytics Dashboard 上:
Users: number and percentage of users who completed in-app transactions
我没有为此目的使用过 Analytics,但它似乎可以满足您的需求。
关于android - Firebase 用户属性 bool 值。 (对或错),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39064142/