Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 can't clear my purchases. I signed out my sandbox user, deleted the app and re-installed it, changed itunes users a few times... the item still shows up as purchased.

I'm using MKStoreKit.

Any ideas?

like image 575
Kenny Winker Avatar asked Sep 29 '11 23:09

Kenny Winker


People also ask

How do I remove sandbox ID from Iphone?

Try to go Settings -> iTunes & App Store scroll down to bottom and find SANDBOX ACCOUNT and clear data here. Save this answer.

How do I change the sandbox on my Iphone?

Go to iTunes & App Store again. At the very bottom, you will see the new Sandbox Account section. You can logout and login to a different sandbox account or leave it as is.

How do I change my Apple ID sandbox?

In order to switch back to the real Apple ID, we just go to the Settings->iTunes, App Store, logout the sandbox user, and login with working Apple ID. This is my way of logging into the sandbox user and get back to the real apple id.


1 Answers

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.

like image 196
Kenny Winker Avatar answered Oct 06 '22 03:10

Kenny Winker