gpt4 book ai didi

iOS StoreKit - 模拟不完整和中断的应用内购买

转载 作者:行者123 更新时间:2023-11-28 21:31:31 29 4
gpt4 key购买 nike

我的实时应用程序存在问题,未完成的购买被错误处理。我正在尝试测试我的新代码以确保这会得到解决,所以我下载了实时应用程序,导致了问题,然后加载了我的开发应用程序(或 Ad-Hoc 应用程序),希望 StoreKit Observer 能够捕捉到不完整的购买通知。无论我如何执行此操作(开发或 Ad-Hoc),观察者都不会触发通知。

我的一般问题是:如何在 App Store 测试环境中模拟未完成和中断的购买?

我更具体的问题是:我能否模拟用户必须离开应用程序才能在应用商店中确认其当前信用卡密码的具体问题?

最佳答案

根据 this helpful page :

Test an Interrupted Transaction

Set a breakpoint in your transaction queue observer’s paymentQueue:updatedTransactions: method so you can control whether it delivers the product. Then make a purchase as usual in the test environment, and use the breakpoint to temporarily ignore the transaction—for example, by returning from the method immediately using the thread return command in LLDB. Terminate and relaunch your app. Store Kit calls the paymentQueue:updatedTransactions: method again shortly after launch; this time, let your app respond normally. Verify that your app correctly delivers the product and completes the transaction.

希望这对某人有帮助。

关于iOS StoreKit - 模拟不完整和中断的应用内购买,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19838254/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com