Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time

Override the ADBMobile JSON config path

You can load a different ADBMobile JSON Config file when the application starts.

The ADBMobile overrideConfigPath:filePath method allows 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 Experience Cloud SDK call, such as collectLifecycleData.

When you call this method with a different path, a one-time override of the configuration file occurs until the application is closed.

For example:

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