Override the ADBMobile JSON Config Path

Load a different ADBMobile JSON Config file when the application starts.

The [ADBMobile overrideConfigPath:filePath] method enables you to specify the path to a different ADBMobile.json configuration file when the application starts. This method must be called in the applicationDidFinishLaunchingWithOptions method, and the call must occur before any other Marketing Cloud SDK call (before collectLifecycleData).

Calling this method with a different path causes a one-time override of the configuration file until the application is closed.

NSString *filePath = [[NSBundle mainBundle] pathForResource:@"ExampleJSONFile" ofType:@"json"];
[ADBMobile overrideConfigPath:filePath];

Parent topic: ADBMobile JSON Config