VMware Workspace ONE Managed Configuration Sample – Android with SDK

The Workspace ONE SDK provides the ability to pull a Managed Configuration from the Workspace ONE Console. The prerequisites for leveraging Managed Configuration using the Android platform are below:

  • An Android application integrated with the Workspace ONE SDK.
  • The SDK application pushed with managed configuration from the Workspace ONE Console.

 

Developing an application that supports Managed Configuration using Workspace ONE SDK

In order to retrieve the Managed Configuration from Workspace ONE, initialize an instance of SDKManager. Next, use the SDKManager method highlighted below to pull a Map of the keys and values.

private Map<String, String> fetchManagedConfiguration() {
     Map<String, String> values = null;

     if(sdkManager != null){
          try {
               values = sdkManager.getApplicationConfigSetting();
          } catch (Workspace ONESDKException e) {
               e.printStackTrace();
          }
     }else{
          Toast.makeText(getContext(),"Please make sure your App is whitelisted with AW
               backend",Toast.LENGTH_LONG);
     }
     return values;
}

 

Sample app:

Developers can locate the implementation of Managed Configuration using the SDK in our Workspace ONE SDK Sample App for Android. It is located in the com.sample.Workspace ONEsdk.ui.SDKAppConfigActivity package. If you do not have access to the Workspace ONE SDK package, contact VMware Workspace ONE.

 

Publishing and updating Managed Configuration for your app within Workspace ONE

A Workspace ONE administrator can push the managed configuration for their enterprise application using following steps:

  1. Under the Internal App Detail view select Assign.
  2. Select the Smart Group and select Edit Assignment.
  3. Scroll down and enable App Configuration.
  4. Enter the key-value pairs required for the applications.
  5. Save and Publish the changes.

 

A Workspace ONE administrator can update the Managed Configuration for their enterprise application using following steps:

  1. Update the values for the Managed Configuration keys by navigating to Edit Application > Assignment > Application Configuration.
  2. Select Save and Publish.
  3. Navigate to App Details and select More > Send Application Configuration.
  4. If the application is running on the devices and the developer has correctly registered the application to receive the managed restriction broadcast from Android OS, then the application will receive the updated values pushed by Workspace ONE.
Have more questions? Submit a request

0 Comments

Article is closed for comments.