[英]Will there be an IAP callback for redeeming a promo code to exchange for a non-consumable product in iOS?
My problem is, the users cannot get the non-consumable item by redeeming the code. 我的问题是,用户无法通过兑换代码来获得非消耗品。
I can confirm the non-consumable items can be bought correctly. 我可以确认非消耗性物品可以正确购买。 I used the app receipt to check whether the user owns it.
我使用应用收据来检查用户是否拥有它。 I'll find through all the products to see if there's one the product id is matching.
我将查找所有产品,以查看是否有一个产品ID匹配。
I cannot find any useful docs to debug the redeeming process. 我找不到任何有用的文档来调试兑换过程。 I don't even know if there should be a callback when the app starts.
我什至不知道应用程序启动时是否应该有一个回调。 Like the transactions are not completed.
好像交易没有完成。
How is redeeming handled behind the scene? 在后台如何处理兑换?
If the app is open after I redeemed a code, how should the app know the user 'bought' the item? 如果我在兑换代码后打开了应用程序,那么应用程序应该如何知道用户“购买了”该商品? How should I know when to send them the contents?
我怎么知道什么时候将内容发送给他们?
If the users try to buy the item they redeemed, they are told they can get it for free, and I see the purchase succeed callback. 如果用户尝试购买他们兑换的物品,则会被告知可以免费获得,我看到购买成功回调。 But then I check app receipt, the product still not exists.
但随后我检查了应用收据,该产品仍然不存在。 I got these logs from the users.
我从用户那里获得了这些日志。
By the way I'm using in_app_purchase plugin from Flutter. 顺便说一句,我正在使用Flutter的in_app_purchase插件。 And for checking the app receipt I'm using https://github.com/robotmedia/RMStore .
为了检查应用收据,我使用https://github.com/robotmedia/RMStore 。
Products redeemed with a promo code will appear on the receipt just as a purchased product would - you won't be able to differentiate from the receipt a purchase vs promo code. 兑换成促销代码的产品将与购买的产品一样显示在收据上-您将无法与收据和促销代码区别于收据。
There isn't a callback on the device for promos specifically, if you refresh the receipt or the user restores transactions you should see the product in the receipt. 设备上没有专门用于促销的回调,如果刷新收据或用户恢复交易,则应在收据中看到产品。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.