Skip to content Skip to sidebar Skip to footer

What Is The Purpose Of The Defaultvalue In The Managed Configurations Xml File?

I will be using Managed Configurations in an app I am developing. After getting some help with this answer, I do not understand how default values are used in Managed Configuration

Solution 1:

You can use the defaultValue field to explain how your app behaves if the property is not explicitly set by the managing app.

The XML file referenced in the manifest is meant to be used by the MDM to display a UI in their console so the IT admin can configure your app. If you set a defaultValue for a property the MDM pre-populates the corresponding field when your app is configured for the first time (e.g. display a checked checkbox for a boolean property that default to true).

For the admin, not configuring your app should be the same as configuring it with the default configuration. Therefore, to be consistent, your app should behave the same way whether a property is unset or set to the defaultValue.

To see how your configuration will look like in an MDM console you can use the Android Management Experience demo.

Edit: More details on how the restriction schema and defaultValue can be retrieved

The app's restriction schema defined in the XML file can be retrieved either

Post a Comment for "What Is The Purpose Of The Defaultvalue In The Managed Configurations Xml File?"