Sample Java app for legacy app-specific configuration handling
Ivanti provides a sample Java app, HelloAppConnect-oldAPI, which handles app-specific configuration using the legacy mechanism for app-specific configuration handling. You can use the code from this app as a starting point for your app’s configuration handling.
HelloAppConnect-oldAPI displays this screen:
HelloAppConnect-oldAPI screen
The HelloAppConnect-oldAPI app:
-
sends a "com.mobileiron.REQUEST_CONFIG" Intent object when you tap Refresh.
-
handles the "com.mobileiron.HANDLE_CONFIG" Intent object in onHandleIntent().
It displays the received key-value pairs, and sends either a "configAppliedIntent" or "configErrorIntent" Intent object. The choice depends on whether you select Report Config Error. When it sends an error, it includes the error string "This is a sample error message."
-
displays whether the app is wrapped, based on the value of the system property "com.mobileiron.wrapped"