iOS:如何通过airwatch中的应用程序配置设置设备序列号?

iOS:如何通过airwatch中的应用程序配置设置设备序列号?,ios,mdm,airwatch,Ios,Mdm,Airwatch,在JAMF中,您可以使用“应用程序配置”告诉设备它自己的序列号,如下所示: <dict> <key>device_serial_number</key> <string>$SERIALNUMBER</string> </dict> /** Retrieve the dictionary of keys stored by the MDM server - returns: dictionary of

在JAMF中,您可以使用“应用程序配置”告诉设备它自己的序列号,如下所示:

<dict>
    <key>device_serial_number</key>
    <string>$SERIALNUMBER</string>
</dict>
/**
 Retrieve the dictionary of keys stored by the MDM server

 - returns: dictionary of key/value pairs
 */
public func appConfig ()  -> Dictionary<String, Any>? {
    if let serverConfig = UserDefaults.standard.dictionary(forKey: "com.apple.configuration.managed")
    {
        return serverConfig
    }
    return nil
}

设备序列号
$SERIALNUMBER
您只需将其直接粘贴到仪表板“移动应用程序”区域的“应用程序配置”框中:

这将告诉设备它自己的序列号,因为该信息在其他情况下不可用

我想知道你是否能在AirWatch做同样的事情。对于它们的配置,它是一个键值字段列表。我在“值”字段中尝试了许多不同的项目,例如:

{SerialNumber}
{SerialNumber}
{SerialNumber}
$SerialNumber}
{SerialNumber}
{SerialNumber}
,但它似乎不起作用


有人知道如何使用AirWatch通知iOS设备其序列号吗?

AirWatch上序列号的AppConfig变量是
{DeviceSerialNumber}
。以下是完整的列表:

{EmailDomain}
{EmailUserName}
{EmailAddress}
{EnrollmentUser}
{EnrollmentUserId}
{DeviceUid}
{DynamicScepChallenge}
{GroupIdentifier}
{SessionToken}
{DeviceFriendlyName}
{DeviceSerialNumber}
{UserPrincipalName}
{DeviceSerialNumberLastFour}
{DevicePlatform}
{DeviceModel}
{DeviceOperatingSystem}
{EmailUserNamePrompt}
{DeviceUidLastFour}
{DeviceReportedName}
{EmailPassword}
{DeviceAssetNumber}
{DeviceWLANMac}
{UserSmimeSigning}
{UserSmimeEncryption}
{SecureDeviceUdid}
{UserDistinguishedName}
{FirstName}
{LastName}
{EmailAddressPrompt}
{EmailDomainPrompt}
您可以在此处将其放入应用程序的“分配”中:

一旦它存在,您就可以通过如下用户默认值访问它:

<dict>
    <key>device_serial_number</key>
    <string>$SERIALNUMBER</string>
</dict>
/**
 Retrieve the dictionary of keys stored by the MDM server

 - returns: dictionary of key/value pairs
 */
public func appConfig ()  -> Dictionary<String, Any>? {
    if let serverConfig = UserDefaults.standard.dictionary(forKey: "com.apple.configuration.managed")
    {
        return serverConfig
    }
    return nil
}
/**
检索MDM服务器存储的密钥字典
-返回:键/值对字典
*/
public func appConfig()->字典?{
如果让serverConfig=UserDefaults.standard.dictionary(forKey:“com.apple.configuration.managed”)
{
返回服务器配置
}
归零
}