StoreKit 2 消耗品的意外行为
我正在尝试使用 StoreKit 2 实现 iAP。也许我的代码不是很优雅,但似乎可以工作;-) 但以下行为我无法理解: 如果我首先在模拟器或测试设备上启动我的应用程序,我可以购买消耗品。如果我想再次购买(消耗品应该如何工作),应用程序会自动恢复购买并且不要求购买。
这是我的测试环境中的特定行为还是我对耗材的理解错误? 由于 StoreKit 2 相当新,我还没有在互联网上找到适合我的教程。
任何提示都非常受欢迎:-)
I'm trying to implement iAP with StoreKit 2. Maybe my code isn't very elegant but seems to work ;-)
But the following behavior I can#t understand:
If I first start my app in simulator or on my test device I can bought a consumable item. If I want to buy it again (how consumables should work) the app automatically restores the purchase and don't ask for purchase.
Is this a specific behavior in my test environment or do I understand consumables wrong?
Because StoreKit 2 is quite new I haven't found a tutorial in the internet that's fits for me.
Any hints are very wellcome :-)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许我解决了我的问题。如果我是对的,可以请某人批准吗?
我将await transaction.finish()添加到我的购买()中
Maybe I solved my problem. Can please someone approve it if I'm right?
I added await transaction.finish() to my purchase()