SKStoreProductViewController

I am using SKStoreProductViewController to present AppStore page of another app. But, When I try to download the app, it throws an error saying "Can't complete purchase: You can only make in-app purchases in sandbox mode [Environment: Sandbox]".


Does anyone know what is the issue here? I am not using any in-app purchase specific APIs. Can I assume that this will always work in production?


Thanks

The error you are seeing indicates to me that you've run the application in the sandbox. This result is standard when the SKStoreProductViewController is made from an app run in the sandbox environment. The fact that the iTunes Store page for the app, was presented, is indicative that when the app is run in the production environment, the process will work. The issue occurs when you then press the "Get" or "Buy" button presented on the page.


rich kubota - rkubota@apple.com

developer technical support CoreOS/Hardware/MFI

Thanks for the reply Rich.


To make sure this works on production, we uploaded the production AppStore signed build to testflight this morning and we are still seeing this error.

Are AppStore signed builds on test flight considered *real* production AppStore builds? Is there something that we might be missing?


Thanks

All TestFlight builds function in the sandbox environment. TestFlight builds are signed with the production certificate, but the operating environment is still in the sandbox - so that no charges are made against the user accounts.


rich kubota - rkubota@apple.com

developer technical support CoreOS/Hardware/MFI

SKStoreProductViewController
 
 
Q