Overview of configuration handling

The Ivanti server administrator can set up app-specific configuration on the server for AppConnect for Android apps. This configuration is in the form of key-value pairs. Your app can receive these key-value pairs. Specifically, when you implement configuration handling in your app, your app:

  • requests the current configuration when it first runs.

    Your app then receives an asynchronous response containing the key-value pairs.

  • receives updates to the configuration.

Java developers 

Ivanti provides a sample AppConnect app called HelloAppConnect-newAPI that implements configuration handling. You can use this sample app’s code as a starting point for your own.

Cordova developers

You can implement app-specific configuration in an app by using an Ivanti-provided Cordova plugin. This plugin provides the necessary APIs to receive the app-specific configuration from the Ivanti server. Ivanti provides the following:

  • AppConnectCordovaConfigPlugin-w.x.y.z.zip, the Cordova plugin. (w.x.y.z corresponds to the AppConnect version for Android)

    See README.md in the ZIP file for information on using the plugin.

  • A sample app that uses the plugin, available as a starting point for your own app.

React Native developers 

You can implement app-specific configuration in a React Native app by using Ivanti-provided files that make up a React Native package called ConfigServicePackage. The files provide the necessary APIs to receive the app-specific configuration from the Ivanti server. Ivanti provides a sample React Native app called HelloReact that includes:

  • all files relating to getting app-specific configuration
  • a README.txt with instructions for using the files
  • sample code for using the files