How can I reset sandboxed in-app purchases on iOS for testing?

前端 未结 2 1937
臣服心动
臣服心动 2020-12-30 10:48

I made a sandbox iTunes user, bought an item. That worked but there were some issues in my code for displaying the item. So, I want to re-buy it to test again. Problem is, I

相关标签:
2条回答
  • 2020-12-30 11:45

    Well, I figured it out. MKStoreKit saves purchased items to the keychain, which persists even if you change iTunes accounts or delete the app. Calling a quick [[MKStoreManager sharedManager] removeAllKeychainData]; reset things.

    0 讨论(0)
  • 2020-12-30 11:53

    If you have your own domain, you often get email handling for free; for example, I have a go daddy account, and I can set a mail forwarding rule for unrecognised email accounts. This makes it very easy to create loads of test accounts without having to have a separate email account for each one.

    0 讨论(0)
提交回复
热议问题