Follow the steps below to verify your Apple App Store integration with a sandbox test purchase.
1. Set Up a Sandbox Test Account
- Go to App Store Connect -> Users and Access -> Sandbox -> Testers.
- Create a new sandbox tester account or use an existing one.
Add the sandbox environment setting to your SDK initialization to distinguish test data from production:
let config = Qonversion.Configuration(projectKey: "[projectKey]", launchMode: .subscriptionManagement)
config.setEnvironment(.sandbox) // Add this line for testing
Qonversion.initWithConfig(config)
QONConfiguration *configuration = [[QONConfiguration alloc] initWithProjectKey:@"[projectKey]" launchMode:QONLaunchModeSubscriptionManagement];
[configuration setEnvironment:QONEnvironmentSandbox]; // Add this line for testing
[Qonversion initWithConfig:configuration];
Make sure to use a physical device (not a simulator) when testing iOS purchases.
3. Make a Test Purchase
- Run your app on a physical device.
- Sign in with the sandbox tester account on the device (Settings -> App Store -> Sandbox Account).
- Trigger a purchase in your app — the App Store will process it in sandbox mode.
Do not use the sandbox environment in production. Switch to the production environment before releasing your app.