mobicontrol.mdm

This namespace provides access to manufacturer-specific mobile device management configuration functionality.
Since:
  • Version 1.5 (API level 6)

Classes

MdmConfigurationError

Members

static, readonly ConfigurationStatusCode :object

This enumeration represents an error status code of mobicontrol.mdm.MdmConfigurationError.
Properties:
Name Type Description
UNKNOWN object No specific failure reason.
NOT_SUPPORTED object MDM configuration is not supported on this device.
MALFORMED_INPUT object The parameter doesn't conform with expected format.
Since:
  • Version 1.5 (API level 6)

Methods

static configure(configuration) → {string}

Configure the device via a manufacturer-specific mobile device management configuration string.

Some device manufacturers allow complex configurations or commands to be written in a markup language such as XML. These configurations can be submitted via this function. At present, only Zebra MX XML configurations are supported. These XML configurations can be created as described in Sending StageNow Profiles to Zebra Devices.

Parameters:
Name Type Description
configuration string The manufacturer-specific configuration string to be submitted to the device.
Returns:
string - The manufacturer-specific response string.
Since:
  • Version 1.5 (API level 6)
Example
mobicontrol.log.info('MX version: ' + getMxVersion());

function getMxVersion() {
    var versionQuery = '<wap-provisioningdoc>' +
                       '    <characteristic type="MX">' +
                       '        <parm-query name="Version"/>' +
                       '    </characteristic>' +
                       '</wap-provisioningdoc>';
    var response = new XML(mobicontrol.mdm.configure(versionQuery));
    return response..parm.@value;
}