Expand my Community achievements bar.

Adobe Mobile iOS: Providing constant values in ADBMobileConfig.json

Avatar

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?}}
Topics

Topics help categorize Community content and increase your ability to discover relevant content.

0 Replies