Please provide suggestions.
FYI DevForums is an informal support channel, so posting a bump just a few hours after posting your original question really sends the wrong message. If you want formal support for this issue, I encourage you to open a DTS tech support incident.
We have Apple Developer Enterprise Account and will not publish the app on Appstore.
Be aware that enterprise apps are expected to follow the same rules as App Store apps, so the fact that you’re not publishing on the App Store does not change the fundamentals here. To wit, the iOS SDK has no APIs to get the IMEI, serial number, or UDID.
However, if you’re deploying to an enterprise environment you can take advantage of the fact that MDM has access to this information. To make this work you’ll need a server-side component. This can talk to the MDM server to get a list of enrolled devices and their attributes (like the IMEI). How you do this depends on the specific MDM server you’re using. If you need help with this, you should talk to your MDM vendor.
Once your server-side component has this information you then have to decide how to use it. If you only need it on the server side, you’re done. If you need it on the client side as well you can have your server-side component vend a custom endpoint that your app talks to to get this information.
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"