How to support both offline configuration & using the launch ID when configuring ACPCore | Community
Skip to main content
March 17, 2020
Solved

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

  • March 17, 2020
  • 1 reply
  • 3281 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by IvanMi1

You would want to use this example: https://aep-sdks.gitbook.io/docs/using-mobile-extensions/mobile-core/configuration#sample-configuration 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-file-configuration

 

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

1 reply

IvanMi1Adobe EmployeeAccepted solution
Adobe Employee
April 7, 2020

You would want to use this example: https://aep-sdks.gitbook.io/docs/using-mobile-extensions/mobile-core/configuration#sample-configuration 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-file-configuration

 

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