Sandbox Environment

Set sandbox environment

With SDK initialisation, you can set the environment to distinguish sandbox and production users. To see the sandbox users, turn on the Sandbox mode 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);
const config = new Qonversion.ConfigBuilder(
  'projectKey',
  Qonversion.LaunchMode.SUBSCRIPTION_MANAGEMENT
)
  .setEnvironment(Qonversion.Environment.SANDBOX)
  .build();
Qonversion.initialize(config);

๐Ÿšง

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


Whatโ€™s Next