Overview of configuration handling
The MobileIron 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
MobileIron 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.
Phonegap developers
You can implement app-specific configuration in a Phonegap app by using a MobileIron-provided Cordova plugin. This plugin provides the necessary APIs to receive the app-specific configuration from the MobileIron server. MobileIron 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 Phonegap 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 MobileIron-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 MobileIron server. MobileIron 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