【问题标题】:iOS: How to set the device serial number via application configuration in airwatch?iOS:如何通过airwatch中的应用程序配置设置设备序列号?
【发布时间】:2018-05-23 15:56:46
【问题描述】:

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

<dict>
    <key>device_serial_number</key>
    <string>$SERIALNUMBER</string>
</dict>

您只需将其直接粘贴到仪表板“移动应用”区域的“应用配置”框中即可:

这将告诉设备它自己的序列号,否则该信息不可用。

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

{SerialNumber}{serialNumber}{Serial}$SERIALNUMBER{serialnumber}{serial},但它似乎不起作用。

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

【问题讨论】:

    标签: ios mdm airwatch


    【解决方案1】:

    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}
    

    您可以在此处将其放入应用的“作业”中:

    一旦出现,您就可以像这样通过 UserDefaults 访问它:

    /**
     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
    }
    

    【讨论】:

      猜你喜欢
      • 2013-06-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-04
      • 1970-01-01
      • 2014-11-12
      • 1970-01-01
      相关资源
      最近更新 更多