ios - Apple's Mobile Device Management without UDID -


after installing mdm profile, when device registers server mdm; server gets following response(s) device:

authenticate:

{'topic': 'com.apple.mgmt.external.dadd0670-xxx', 'udid' : 'xxxx', 'messagetype': 'authenticate'} 

tokenupdate:

{'topic': 'com.apple.mgmt.external.dadd0670-xxx', 'udid' : 'xxx', 'token': xxxx, 'pushmagic': 'xxxx', 'messagetype': 'tokenupdate'} 

as can see in response, map mdm token(we in tokenupdate command) device can use device's udid.

so, in ios app have send device's udid our server link token device. using "[[uidevice currentdevice] uniqueidentifier]" this.

but, apple not accepting apps access uniqueidentifier.

protocol reference

starting in ios 6.0+, apple has provided new identifiers can use. options are:

[[uidevice currentdevice] identifierforvendor]] 

this meant identifying device specific vendor. hence, same same developer's apps, vary across different developers' apps. see docs here.

alternatively, can use:

[[asidentifiermanager sharedmanager] advertisingidentifier] 

this returns value same across vendors. however, meant advertising purposes (and in instances, can changed... such if device erased). see docs here.

you might refer docs on uniqueidentifier can found here , have commentary above 2 replacement options (and option uses uuid of nsuuid class).

the main limitation of above 2 mentioned options available ios 6.0+ only... if must target ios 5.0+, have option creating own identifier (such based on mac address done uidevice-with-uniqueidentifier-for-ios-5 example).


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -