storekit
iOS sandbox environment auto-renewal subscription
a) Auto-renewing subscriptions are inconsistent in the sandbox environment. Sometimes a subscription will renew multiple times (about 5) before ending. Other times it won’t renew at all. b) (iOS6 transaction receipts only) You don’t need to call restoreCompletedTransactions to check the status of a subscription if you’re storing previous receipts (preferably on your server). Just … Read more
iPhone StoreKit – invalid product id’s
If you are still getting invalid product ids, I’ve been accumulating a checklist of all of the various causes: http://troybrant.net/blog/2010/01/invalid-product-ids/
iOS: How to detect if a user is subscribed to an auto-renewable subscription
I know everyone was very concerned about me and how I was doing on this – fear not, solved my problem. Main problem was that I tried Apple’s example code from the documentation, but it wasn’t working so I gave up on it. Then I came back to it and implemented it with Alamofire and … Read more
iOS Sandbox Test User account Subscription Management
You can’t really manage subscriptions in sandbox, but as Jean-Paul de Ville de Goyet found out on Apple Developer Forums: 1 month subscriptions auto-renew every 5 minutes. So far so good. They auto-renew 5 times and then they stop, so after 25 minutes you’ll get the 21006 error. However even when repurchasing the same subscription … Read more
Annoying “[Environment: Sandbox]” alert
Update: Most probably a temporary Apple glitch. Our customers start calling, reporting this problem as well. Update 2: Seems to be fixed now. This started happening all of the sudden earlier today. The weird thing is that we are using an AdHoc/Enterprise build in which we can’t use the IAPs. To me this looks a … Read more
SKStoreProductViewController crashes for unrecognized selector named sceneDisconnected: in iOS 15.6 beta5
Looks like this was fixed in the iOS 15.6 release candidate that was realeased today. Sept 14 2022 Update: Apple re-introduced this crash in the official 15.7 release. It only seems to happen when the app is force quit so it should not affect users. I’ve filed a ticket to Apple on feedbackassistant.apple.com and would … Read more
Logout from AppStore on iOS Simulator
There is another way to log out from that sandbox account without “Reset Content & Settings” . Just remove the files from the following path in your home directory : ~/Library/Application\ Support/iPhone\ Simulator/5.0/Library/com.apple.itunesstored You may also need to restart the Simulator for the change to take effect. This just removes the stored information about iTunes … Read more