Android In-app产品不可使用,但可购买多款产品 [英] Android In-app product that is not consumable, but several can be purchased

查看:182
本文介绍了Android In-app产品不可使用,但可购买多款产品的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序是一种类型用户通过他们拥有的'插槽'的数量受益。把它想象成一个ListView的长度。我的免费应用程序的最大长度是ListView的最大长度。但是如果用户需要更多列表项目,他们可以购买后续的列表项目插槽。用户应该能够以每个0.50美元的价格购买任意数量的商品。



问题在于,我的应用内商品不属于'被管理产品,也不属于消费品的定义。我需要能够按用户喜欢的次数购买'slot'产品。但同时,我也希望Google Play能够跟踪每个用户的广告位数量。 文档(以及其中的几个教程)建议:


  • 如果我希望Google Play为每个用户存储每个商品的购买信息 ,我将不得不声明我的产品作为托管(非消费品)产品。

  • 如果我希望我的产品能够多次购买,我将不得不为 多次购买



困境是我想要这两个功能。



一个不好的解决方案是我将几个插槽产品作为独特的产品(alpha插槽,beta插槽等等),然后将它们视为同一件事。然而,我想知道一个更加正确和合理的解决方案。另一个解决方案是使用单独的云服务来跟踪数量用户购买的插槽,但我不想那样。这将是矫枉过正。此外,我还想利用Google Play商店的本地缓存功能。

解决方案

我问Google Play开发者支持,如果有任何方式,谷歌Play商店可以保持易用的应用内产品的数量。结果,目前,这是不可能的。



以下是实际回复(2016年11月3日):




我想知道Play商店是否也记录用户购买的
CONSUMABLE应用内商品的计数用户
卸载,然后重新安装应用程序?
简而言之,在用户重新安装后,是否有任何方法知道用户曾购买过单个应用内商品的
多少?




感谢您与Google Play开发者支持部门联系。



我检查了它并且Play开发者控制台目前不支持
跟踪每个IAP购买的每位用户,供
开发人员查看。幸运的是,我们高度重视开发者
的反馈,并且我将确保将您的具体反馈传递给我们的
产品团队。我们不断添加新功能和功能,
,敬请期待。


您可以随时查看Android开发者博客以获取任何新功能
和更新: http://android-developers.blogspot.com/



I am having confusion choosing a suitable product type of a commodity in my utility android application.

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.

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:

  • If i want Google Play to store the purchase information for each item on a per-user basis, i will have to declare my product as a managed (non-consumable) product.
  • If i want my product able to be purchased many times, i would have to implement consumption for items that can be purchased multiple times.

The predicament is that i want both the features.

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.

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.

解决方案

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.

Here is the actual reply (Nov 3, 2016):


I wanted to know whether Play Store also keeps record of the count of a CONSUMABLE in-app item that a user has bought even after the user uninstalls and then reinstalls the app? In short, after user reinstalls, is there any way of knowing as to how many of a single in-app item has the user ever bought?

Hi,

Thanks for contacting Google Play Developer Support.

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.

You can always check the Android Developers Blog for any new features and updates: http://android-developers.blogspot.com/

这篇关于Android In-app产品不可使用,但可购买多款产品的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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