How to identify device id?

Starting from iOS 7, you can no longer access UDID programatically via code. So I was thinking reading the email address from the configuration profile.


Is it possible to read configuration profile using Swift? Specifically, I want to read the EmailAddress defiend in the Email Payload.


https://developer.apple.com/library/ios/featuredarticles/iPhoneConfigurationProfileRef/Introduction/Introduction.html#//apple_ref/doc/uid/TP40010206-CH1-SW1


Or do you have a better approach to uniqely identify the device? I do not want to use vendor identifier because it will change. I need an id that is more persistent to identify user.


Thanks.

No way. The link you showed is intended to use with enterprise configurator and it may change and not all devices have that information.


If someone found a way to get an information which can uniquely identify each device, it would be treated as a severe security/privacy issue and Apple would fix it as soon as possible.


Give up. Use vender id.

What about reading from a cert? Looks like cert can contain email address.


https://technet.microsoft.com/en-us/library/dd361898.aspx

I don't mind you waste your time searching those things...

Think what sort of certificates contains whose email. If you want to use email, request user to input.

How to identify device id?
 
 
Q