Sandbox Environment

Set sandbox environment

You can set the environment with SDK initialization to distinguish sandbox and production users. To see the sandbox users turn on the Viewing test Data toggle in Qonversion Dashboard

let config = Qonversion.Configuration(projectKey: "projectKey", launchMode: .subscriptionManagement)
config.setEnvironment(.sandbox)
Qonversion.initWithConfig(config)
QONConfiguration *configuration = [[QONConfiguration alloc] initWithProjectKey:@"projectKey" launchMode:QONLaunchModeSubscriptionManagement];
[configuration setEnvironment:QONEnvironmentSandbox];
[Qonversion initWithConfig:configuration];
final QonversionConfig qonversionConfig = new QonversionConfig.Builder(
        this,
        "projectKey",
        QLaunchMode.SubscriptionManagement
)
        .setEnvironment(QEnvironment.Sandbox)
        .build();
Qonversion.initialize(qonversionConfig);
val qonversionConfig = QonversionConfig.Builder(
    this,
    "projectKey",
    QLaunchMode.SubscriptionManagement
)
    .setEnvironment(QEnvironment.Sandbox)
    .build()
Qonversion.initialize(qonversionConfig)
final config = new QonversionConfigBuilder(
    'projectKey',
    QLaunchMode.subscriptionManagement
)
    .setEnvironment(QEnvironment.sandbox)
    .build();
Qonversion.initialize(config);
const config = new QonversionConfigBuilder(
  'projectKey',
  LaunchMode.SUBSCRIPTION_MANAGEMENT
)
  .setEnvironment(Environment.SANDBOX)
  .build();
Qonversion.initialize(config);
QonversionConfig config = new QonversionConfigBuilder(
        "projectKey",
        LaunchMode.SubscriptionManagement
    )
    .SetEnvironment(Environment.Sandbox)
    .Build();
Qonversion.Initialize(config);
Qonversion.setDebugMode();

🚧

Please don't use the sandbox environment in production. Set the production environment before releasing your app to an app store.


What’s Next