Android In-app product that is not consumable, but several can be purchased(Android 应用内产品不是消耗品,但可以购买几个)
问题描述
在我的实用 android 应用程序中选择合适的商品产品类型时,我感到困惑.
I am having confusion choosing a suitable product type of a commodity in my utility android application.
我的应用程序是一种用户通过他们拥有的 'slots' 数量受益的应用程序.把它想象成 ListView 的长度.我的免费应用程序的最大 ListView 长度为 5.但如果用户需要更多列表项,他们可以购买后续的列表项插槽.用户应该能够以每个 0.50 美元的价格购买任意数量.
My application is of a kind where the user is benefitted through the number of 'slots' that they own. Think of it like the length of a ListView. My free application will feature a maximum length of that ListView upto 5. But if a user needs more List Items, they can buy subsequent List Item slots. The user should be able to buy as many as they like at 0.50$ each.
问题在于,我的应用内商品既不单独属于被管理商品"的定义,也不属于单独的消费品"定义.我需要能够根据用户喜欢多次购买的老虎机"产品.但同时,我也希望 Google Play 跟踪每个用户的插槽数量的所有权.
The problem is that, my in-app product neither comes under the definition of a 'managed product' alone, nor does it come under the definition of a 'consumable product' alone. I need the 'slot' product able to be purchased as many times as the user likes. But at same time, i also want Google Play to keep track of the ownership of the amount of slots per user.
作为 文档(以及一些教程)建议:
As the documentation (and several tutorials out there) suggest:
- 如果我希望 Google Play 按用户存储每件商品的购买信息,我必须将我的产品声明为托管(非消耗品)产品.
- 如果我希望我的产品能够被多次购买,我将不得不对可以多次购买的物品实施消费.
困境是我想要这两个功能.
The predicament is that i want both the features.
一个糟糕的解决方案是,我将几个老虎机产品作为独特的产品(alpha 老虎机、beta 老虎机……等等),然后将它们视为同一事物.但是,我想知道一个更正确和更明智的解决方案.
One bad solution is that I feature several slot products as unique products (alpha slot, beta slot, ... and so on), and then treat them as the same thing. However, i'd like to know of a solution that's more correct and sensible.
另一个解决方案可能是使用单独的云服务来跟踪用户购买的插槽数量,但我不希望这样.那将是矫枉过正.另外,我想利用 Google Play 商店的本地缓存"功能.
Another solution could be to make use of a separate cloud service to keep track of the number of slots bought by users, but i don't want that. That would be overkill. Also, i'd like to make use of the 'local caching' feature of Google Play Store.
推荐答案
我询问了 Google Play 开发者支持,是否有任何方法可以让 Google Play 商店统计可消耗的应用内商品.事实证明,目前是不可能的.
I asked Google Play Developer Support if there were any way that Google Play Store could keep count of consumable in-app products. Turns out, at the moment, it is not possible.
这是实际回复(2016 年 11 月 3 日):
Here is the actual reply (Nov 3, 2016):
我想知道 Play 商店是否也记录了用户甚至在用户之后购买的可消费应用内商品卸载然后重新安装应用程序?简而言之,用户重新安装后,有没有办法知道有多少用户曾经购买过一个应用内商品吗?
感谢您联系 Google Play 开发者支持.
Thanks for contacting Google Play Developer Support.
我检查了它,但 Play 开发者控制台目前没有支持跟踪每个用户每次 IAP 购买开发商看.幸运的是,我们非常重视开发人员反馈,我一定会将您的具体反馈传递给我们的产品团队.我们不断添加新的特性和功能,所以请继续关注.
I checked into it and the Play Developer Console doesn’t currently support tracking every individual users every IAP purchase for developers to see. Luckily, we place a high value on developer feedback, and I’ll be sure to pass along your specific feedback to our product team. We’re continually adding new features and functionality, so please stay tuned.
您可以随时查看 Android 开发者博客以了解任何新功能和更新:http://android-developers.blogspot.com/
You can always check the Android Developers Blog for any new features and updates: http://android-developers.blogspot.com/
这篇关于Android 应用内产品不是消耗品,但可以购买几个的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Android 应用内产品不是消耗品,但可以购买几个
- 如何在 iPhone 模拟器中重置 NSUserDefaults 数据? 2022-01-01
- UITextView 内容插图 2022-01-01
- Xcode 7.3 中带有 UILabel 的 UIStackView 2022-01-01
- 在 Iphone SDK 的导航栏上添加多个按钮 2022-01-01
- SetOnItemSelectedListener上的微调程序错误 2022-01-01
- 类似于 Mail.app 的 iPad 模态视图控制器? 2022-01-01
- URL编码Swift iOS 2022-01-01
- GPS状态的广播接收器? 2022-01-01
- 使用自动布局向 UIScrollView 添加动态大小的视图 2022-01-01
- 网上有没有好的 UIScrollView 教程? 2022-01-01