Windows Phone 8应用程序中的应用内购买是否有限制? [英] Is there a limit of in-app purchases in Windows Phone 8 app?

查看:116
本文介绍了Windows Phone 8应用程序中的应用内购买是否有限制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们已经发布了WP8应用,用于通过应用内购买购买杂志/报纸。我们为每个问题创建了单个应用内购买+一些订阅和10个应用内购买,同时在应用的WP商店中定义了134个应用内购买

We've published WP8 app for purchasing magazines/newspapers using in-app purchases. We've created single in-app purchase for each single issue + some subscriptions and 10pack in-app purchases, together there is 134 in-app purchases defined in the WP Store for the app.

问题是, CurrentApp.LoadListingInformationAsync()API仅返回前100个应用内购买列表 Windows Phone 8应用只能使用100个应用内购买的预期行为吗?我没有在 MSDN 关于单个WP8应用程序的应用内购买限制。注意我们已经知道Windows 8商店中200个项目的限制。

The problem is, the CurrentApp.LoadListingInformationAsync() API returns only the list of first 100 in-app purchases. Is this expected behavior that Windows Phone 8 app can use only 100 in-app purchases? I've not found any single information on MSDN about limit of in-app purchases for single WP8 app. Note we already know about the limit of 200 items in Windows 8 store.

推荐答案

所以我找到了这个bug的解决方案,当 CurrentApp.LoadListingInformationAsync()仅返回前100个已发布的产品时:

这个方法实际上是未记录的功能/错误,它只返回前100个产品,以防您创建超过100个项目为您的应用程序。

So I've found a solution for this bug, when CurrentApp.LoadListingInformationAsync() returned only first 100 published products:
This is actually undocumented feature/bug in this method, it returns only first 100 products in case you have created more than 100 items for your app.

要获取有关剩余产品的信息,您需要使用此API

CurrentApp.LoadListingInformationByProductIdsAsync(listOfIds)。如果您知道产品,它会返回有关任何已发布产品的信息.Id。由于这种方法,我们能够修复我们的应用程序并向用户提供购买任何已发布产品的选项。

In order to get information about remaining products, you need to use this API:
CurrentApp.LoadListingInformationByProductIdsAsync(listOfIds). It returns info about any published product, if you know the product.Id. Thanks to this method we're able to fix our app and provide to users option to buy any published product.

我还向Microsoft支持发送了消息,如果他们可以就此意外行为给我任何澄清。与此同时,我很高兴第二种方法的解决方案有效。

I've also sent message to Microsoft support, if they can give me any clarification regarding this unexpected behavior. In the meantime I'm glad the solution with the second method works.

这篇关于Windows Phone 8应用程序中的应用内购买是否有限制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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