Configure environment

By default, Svea App Wallet will target the production API, this can be changed to the stage environment by adding some additional configuration to your app.

Configure environment in iOS

Add a dictionary entry in your applications Info.plist named SveaWalletConfig, Include environment entry with the value stage.
info

The environment can only be changed at build time

Copy
Copied
<key>SveaWalletConfig</key>
<dict>
    <key>environment</key>
    <string>stage</string>
</dict>

Configure environment in Android

Android doesn't contain a configuration file for setting the environment, instead it provides an optional method to chose the correct environment.

info

The environment can be changed at both build- and runtime.

Copy
Copied
SveaWallet.init(Environment.STAGE)