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

SOLVED

How to support both offline configuration & using the launch ID when configuring ACPCore

crushforth
Level 1
Level 1

I'm upgrading our code from 4.x to the Adobe Experience Platform.  We're using iOS and Swift.

We used to use the json file method for configuration.

Based on the recommendation in the documentation we're now using the following configuration function:

ACPCore.configure(withAppId: "??????")

But what is the correct process for supporting offline analytics (E.g. if the json file above configuration method fails because the user is offline)

do we call both in the following order?

ACPCore.configure(withAppId: "??????")

ACPCore.configureWithFile(inPath: filePath)


The wording in the documentation mentions "replace or complement" with regards to a bundled json file

"You can include a bundled JSON configuration file in your app package to replace or complement the configuration that was downloaded by using the Configure with Launch App ID approach."


Just wondering if anyone has any clarification on how to handle this.

Cheers

1 Accepted Solution
Ivan_Mironchuk
Correct answer by
Employee
Employee

You would want to use this example: https://aep-sdks.gitbook.io/docs/using-mobile-extensions/mobile-core/configuration#sample-configurat... to build your configuration, scraping the values from your Launch configuration: https://assets.adobedtm.com/PASTE-LAUNCH-ENVIRONMENT-ID.json 

 

These directions discuss using a bundled config: https://aep-sdks.gitbook.io/docs/using-mobile-extensions/mobile-core/configuration#using-a-bundled-f...

 

The bundled config will be used until the app gets a network connection, after which the remote Launch configuration will be downloaded and cached. 

View solution in original post

1 Reply
Ivan_Mironchuk
Correct answer by
Employee
Employee

You would want to use this example: https://aep-sdks.gitbook.io/docs/using-mobile-extensions/mobile-core/configuration#sample-configurat... to build your configuration, scraping the values from your Launch configuration: https://assets.adobedtm.com/PASTE-LAUNCH-ENVIRONMENT-ID.json 

 

These directions discuss using a bundled config: https://aep-sdks.gitbook.io/docs/using-mobile-extensions/mobile-core/configuration#using-a-bundled-f...

 

The bundled config will be used until the app gets a network connection, after which the remote Launch configuration will be downloaded and cached. 

View solution in original post