Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

Adobe Mobile iOS: Providing constant values in ADBMobileConfig.json

kausi_ahmeds
Level 1
Level 1

I need to be able to use a constant in two of the values ADBMobileConfig.json

Reason: We're using different servers for Development and Production, and can't have the development data mixed with production Data. At build time we'll provide values based on the environment settings (development / production).

Thus, how can I use a constant value for "rsids" and server" file?

I'd like to be able to do something like this:

NSStirng *const kServerURL = @"www.google.com"
NSStirng *const kRSID = @"123456"
 
"audienceManager" : {"server" : kServerUrl}
{"version" : "1.0","analytics" : {"rsids" : kRSID // I know this won't work, but how does Adobe recommend I achieve this?
"server" : "","charset" : "UTF-8","ssl" : false,"offlineEnabled" : true,"lifecycleTimeout" : 300,"privacyDefault" : "optedin","poi" : []},"target" : {"clientCode" : "","timeout" : 5},"audienceManager" : {"server" : kServerURL  // I know this won't work, but how does Adobe recommend I achieve this?}}
0 Replies