Last modified January 14, 2021 by Shelly Wolfe

How do I configure the Swrve SDK for EU data storage?

By default, Swrve stores customer resources and content in our US data center. Some customers may require that we store their data in our EU data center, therefore to accommodate these requirements, Swrve has separate endpoints for customers who require data separation (for example, This article explains how to update the SDK configuration to point to the EU URL endpoints. If you have any questions or need assistance configuring the SDK for EU data storage, please contact

EU stack endpoints configuration

To make use of Swrve’s EU stack, you must configure the Swrve SDK to point to the correct server addresses.


Update the code in the didFinishLaunchingWithOptions method of the App Delegate to the following:

#import "swrve.h"
- (BOOL) application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
   SwrveConfig* config = [[SwrveConfig alloc] init];
   config.Stack = SWRVE_STACK_EU;
   [Swrve sharedInstanceWithAppID:<app_id> apiKey:@"<api_key>" config:config];


Update the onCreate method of your application class to the following:


public void onCreate() {
    SwrveConfig config = new SwrveConfig();
    SwrveSDK.onCreate(this, <app_id>, "<api_key>", config);


In the Unity editor, update the Config Events Server and Content Server settings to https://<app_id> and https://<app_id> respectively, or use the following when setting up the configuration:

Config.SelectedStack = Swrve.Stack.EU;

Using Swrve APIs

If an app is configured to use the EU stack, you must also update any API URL references as follows:

Swrve Events API
Swrve Referrer API
Session Token
<app_id> <app_id>
Swrve A/B Test API <app_id> <app_id>
Swrve Push API
Swrve Items API
Swrve Export API