Get serial number of device on iOS 8

前端 未结 4 1701
孤独总比滥情好
孤独总比滥情好 2021-02-14 23:44

For an in-house application, we were using the following code UIDevice+serialNumber to get the device serial number. However, it seems that with iOS 8, the registry key \"IOPlat

4条回答
  •  温柔的废话
    2021-02-15 00:43

    Retrieving the device serial number directly is no longer possible in iOS.

    However, if it's simply for an internal enterprise app, something the company I work for is going to implement is this:

    During device configuration, copy the serial number and set the device name as the serial number.

    Then use Apple's UIDevice API to retrieve the device name.

提交回复
热议问题