应用内购买历史记录和应用功能 [英] In-app Purchase History and application features

查看:82
本文介绍了应用内购买历史记录和应用功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序,我已经写过,我允许在应用程序内购买,$ x为x的时间没有广告。最初有2/3的功能可以使用,一旦付费我就会变得功能齐全并关闭广告。 (工作正常)现在这是IAP到期后问题
我希望它基本上保持完全功能,但广告打开。当我最初测试它时,它起作用了,因为IAP即使在到期后仍留在收据上,就像不再活动一样。现在我发现
他们不再在收据上了(这只是MS商店中的一个打嗝,或者它真的没有发送所有购买的IAP即使没有过期,(或者有没有办法得到过期的列表))

I have an app I've written where I allow in-app purchases, $x for x amount of time without advertisements. Initially 2/3 of the features work, once they pay I have it become fully functional and turns off advertising. (works fine) Now here's the problem after the IAP expires I wanted it to basically keep it as fully functional but for the advertising to turn on. When I had originally tested this it worked because the IAP's even after expiring stayed on the receipt, just as not active anymore. Now I'm finding that they are no longer on the receipt (Is this just a hiccup in the MS store or does it really not send all of the IAP's purchased even if not expired, (or is there a way to get a list of the expired ones))

我当前的修复(我开始处理)是基本上放入另一个IAP 并且没有广告或显示在该应用程序。然后让它检查应用程序何时启动,如果他们已经购买了其他IAP之一并且新的IAP
许可证未被列为自动购买$ 0的backendperm许可证(如果我这样做会很好可以在没有用户同意的情况下做到这一点,但我不认为我可以,安全明智,如果我能够这样做可能会很糟糕)

My current fix (which I'm starting to work on) is to basically put in another IAP and not have it advertised or shown in the app. Then have it check when the app starts up if they have purchased one of the other IAP's and the new IAP license is not listed to automatically purchase the backendperm license for $0 (which it'd be nice if I could do this without the users consent but I don't think I can, security wise it could be bad if I would be able to)

然后当其他IAP过期时它仍然会有永久IAP将确保功能启用,同时允许广告重新开启。

Then when the other IAP's expire it will still have the permanent IAP which will make sure the features are enabled, while allowing the advertising to turn back on.

Kyle Weir

Kyle Weir

推荐答案

Hello Kyle Weir,

Hello Kyle Weir,

>>或者有没有办法获得过期的列表

>>or is there a way to get a list of the expired ones

我不知道这样的列表,也许在你的代码中你可以自己保存一个列表然后循环它们的isActive属性来获得结果。例如,licenseInformation.ProductLicenses [" YourProductName"]。isActive和licenseInformation.ProductLicenses [" YourProductName"]。ExpirationDate

I'm not aware of such a list, maybe in your code you can keep a list yourself then loop their isActive property to get the result. For example, licenseInformation.ProductLicenses["YourProductName"].isActive and licenseInformation.ProductLicenses["YourProductName"].ExpirationDate

您是否已经完成上述操作以检查产品的状态?我对此不太确定。

Have you already done the above to check the product's status? I'm not so sure about this.

问候,

Barry


这篇关于应用内购买历史记录和应用功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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