iOS 7æ代ã®UDID(UUID)åå¾æ¹æ³
iOS 6ã®é ã«ãããããæä¾è¾ããã®ã§å¯¾çãã¦ã¦ããã£ã¦è¨ããã¦ãUDIDãªã©ãiOS 7ããã¯éã«ä½¿ç¨ã§ããªã(ãã®ã¾ã¾ä½¿ç¨ããã¨åé¡ãåºãå¤ãè¿ã)æ§ã«æãã¾ããã
è²ã ã¨å¤ãã£ã¦ããã®ã§æ å ±ã¾ã¨ãã¦ããã¾ãã
uniqueIdentifier
以ä¸ã®æ§ãªè¨è¿°ã§åå¾ããã¦ããããããUDIDãåå¾ããçºã®ã¡ã½ããã§ãã
[[UIDevice UIDevicecurrentDevice] uniqueIdentifier]
ãã®ã¡ã½ããã¯iOS 6ã®é ããéæ¨å¥¨ã«æã£ã¦ãã¾ãããç¾å¨ã¯å¯©æ»ãéããªãæãã¾ãããiOS 7ã§ã¯åå¾ãã度ã«ç°ãªãå¤ãè¿ãããæ§ã«æã£ãã¿ããã§ããã¾ããå
é é¨åã¯å¸¸ã«FFFFFFFFã«ãªãã¿ããã§ãã Twitterã§ããªãªã¼ã¹ãã¼ãã« FFFFFFFF + identifierForVendor ãè¿ãããã¨æ¸ããã¦ãããã¨æãã¦è²°ãã¾ããã
iOS 7 Release Notes:
https://developer.apple.com/library/ios/releasenotes/General/RN-iOSSDK-7.0/
ãªãããã®æåå¤æ´ã«ããUDIDã確èªããiOSã¢ããªãªã©ã¯iOS 7ã§å®è¡ããå ´åã«ã¯æ£ããå¤ãè¿ãã¾ããã
ãããã°ããã人ã®ç«¯æ«ã®UDIDã確èªãã¦è²°ãæã«ä»ã¾ã§ã¯ã¢ããªã§ç°¡åã«ç¢ºèªåºæ¥ã¾ããããããã㯠iTunes ã Organizer ã«ã¦ç¢ºèªãã¦è²°ãå¿ è¦ãæãã¾ãã
æ°ããåºåãã©ããã³ã°åãã®ã¡ã½ãã
åºåãã©ããã³ã°ã®å ´å㯠advertisingIdentifier (â»iOS 6ããå®è£
ããã¦ããã¡ã½ããã§ã)ã使ç¨ãã¾ãã
AdSupport.frameworkã追å ãã #import
NSUUID *adUUID = [ASIdentifierManager sharedManager].advertisingIdentifier; _textField.text = adUUID.UUIDString;
å¥é advertisingTrackingEnabled ã«ã¦ã¦ã¼ã¶ãåºåãã©ããã³ã°ã許å¯ãã¦ããããã§ãã¯ãã¦ãã®UUIDã使ç¨ãããã©ãããåãåãã®å¿ è¦ãæãã¾ãã
iOS 6ã®é ã¯ãã®ã¡ã½ããã§åå¾åºæ¥ãå¤ã¯å¤åããäºã¯ç¡ãã£ãã§ããiOS 6.1ããã¯ãã®å¤ããªã»ãããããã¿ã³ã追å ããã¦ããããã®ãã¿ã³ãæ¼ãããå ´åã«ã¯UUIDã¯æ°ãããã®ã«å¤ããã¾ãã
iOS6.1ã®æ°æ©è½ãAdvertising Identifierããªã»ããããè¦ã¦ã¿ã - mikanmarusanã®ããã°
http://mikanmarusan.hatenablog.com/entry/20130211/1360581304
ãã®è¨äºã§è§£èª¬ããã¦ãã6.1ã§ã¯ãè¨å® > ä¸è¬ > æ å ± > ã¢ããã¿ã¤ãºãã§ããiOS 7ã®å ´åã«ã¯ãã®ãã¿ã³ã¯ãè¨å® > ãã©ã¤ãã·ã¼ > åºåãã«ç§»åããã¦ãã¾ãã
åºåãã©ããã³ã°ä»¥å¤ã®ç¨éã«ä½¿ç¨ããUUIDåå¾ç¨ã¡ã½ãã
åºåãã©ããã³ã°ä»¥å¤ã®ç¨éåãã«ã¯ identifierForVendor (â»iOS 6ããå®è£ ããã¦ããã¡ã½ããã§ã)ã使ãã¾ãã以ä¸ã®æ§ãªè¨è¿°ã§ä½¿ãã¾ãã
NSUUID *vendorUUID = [UIDevice currentDevice].identifierForVendor; _textField.text = vendorUUID.UUIDString;
ãã®ã¡ã½ããã§ã¯ãåä¸ãã³ãã¼(ã¢ããªéçºè )ï¼åä¸ããã¤ã¹ãã®æã«ã¯åä¸ã®UUIDãè¿ãã¾ãã1ã¤ã®ããã¤ã¹ã«ã¤ã³ã¹ãã¼ã«ããã¦ããåä¸ãã³ãã¼ã®ã¢ããªã®å ´åã«ã¯ãããã®ã¢ããªã§ãåä¸ã®UUIDãè¿ããã¾ãã
ãããããã®UUIDã¯åä¸ãã³ãã¼ã®ã¢ããªã端æ«ããå ¨ã¦åé¤ãããã¨ãªã»ãããããæ°ããå¤ã«å¤ããã¾ãã®ã§æ°ãä»ãã¦ä¸ããã
åä¸ãã³ãã¼ã®å¤å®ã«ã¯ .plist ã® Bundle identifier ã使ç¨ãããã¿ããã§ãã
ä¾ãã° com.example.hoge ã¨è¨å®ããã¢ããªã¨ com.example.hoge2 ã¨è¨å®ããã¢ããªã¯åä¸ã®UUIDãè¿ãã¾ãã
com.example.hoge ã jp.example.hoge ãªã©ãªãã¼ã¹ãã¡ã¤ã³ã®ãã¡ã¤ã³åã«å½ããé¨åãå¤æ´ããå ´åã«ã¯ããããå¥ã®UUIDã¨ãªãæ§ã§ãã
iOS 6ãªãªã¼ã¹å½åã«ã¯ advertisingIdentifier 㨠identifierForVendor ã«ãã°æã
iOS 6.0ãªãªã¼ã¹å½åã«OTAã使ã£ã¦OSãã¢ãããã¼ããã人ã«ã¯ advertisingIdentifier 㨠identifierForVendor ã®åä½ã«ãã°ãæãã¾ãããä»ã¨ãªã£ã¦ã¯ãã®ç¶æ ã«æã£ã¦ããiOSããã¤ã¹ã«ééããã®ã¯ç¨ã§ãããã念ã®çºã« 00000000-0000-0000-0000-000000000000 ãè¿ãããå ´åã¯åå¾å¤±æã¨ããå¦çãå®è£ ãã¦ããã®ãè¯ãã§ãããã
A-Liaison BLOG: iOS 6.0ã® advertisingIdentifier 㨠identifierForVendor ã«ã¯ãã°ãããã®ã§æ³¨æ
http://akisute.com/2012/11/ios-60-advertisingidentifier.html
MACã¢ãã¬ã¹ãåå¾åºæ¥ãªãæã£ã
iOS 7ã§ã¯MACã¢ãã¬ã¹ãåå¾åºæ¥ãªãæãã¾ãããå®éã«åå¾ããå ´åã«ã©ã®ããã¤ã¹ã§ã 02:00:00:00:00:00 ãè¿ããã¾ãããã¡ãã®å¯¾çã¨ãã¦ã¯ identifierForVendor ã§åå¾ããUUIDãªã©ã«ç½®ãæããã¨ããæ¹æ³ã«æãã¾ãã
ã¾ããèªåã®ããã°ã©ã ã§MACã¢ãã¬ã¹ã®åå¾é¨åãåé¤ããã¨ãã¦ããµã¼ããã¼ãã£ã®ã©ã¤ãã©ãªã®ä¸ã§ä½¿ç¨ããã¦ããå¯è½æ§ãæãå¾ã¾ãããã¡ãã®è¨äºã§ç´¹ä»ãã¦ããæ¹æ³ã§ãã§ãã¯ããã¨è¯ãã§ãããã
iOS 㧠MAC ã¢ãã¬ã¹ãåå¾ããã³ã¼ããã¤ãã¾ãã - Qiita [ãã¼ã¿]
http://qiita.com/mootoh/items/f97a2224c0c5820c40e3
å ã¿ã« 02:00:00:00:00:00 ã¨ããã¢ãã¬ã¹ã«æã£ã¦ããã®ã¯ locally administered ããããç«ã¦ã¦(å é ã®0x02)ããã¼ã«ã«ã§ç®¡çããã¢ãã¬ã¹ã¨ããè¨å®ã«ãã¦æãçºã§ããé©å½ãªã°ãã¼ãã¹ã¢ãã¬ã¹ã«ãã¡ããã¨ä»ã®ä¼æ¥ã«è¿·æãããã£ã¡ããã¾ããããã
MACã¢ãã¬ã¹ - Wikipedia
http://ja.wikipedia.org/wiki/MAC%E3%82%A2%E3%83%89%E3%83%AC%E3%82%B9
gethostuuid()
gethostuuid() ã¯iOS 7ã§åé¤ããã¾ãããæ¢ã«ä½¿ç¨ãã¦ããã¢ããªãiOS 7ã§å®è¡ããå ´å㯠identifierForVendor ã®å¤ãè¿ããã¾ãã
é¢é£æ å ±
[memo]UDID/UUID/UIIDãªã©ã¨iOS6ã®æ°IDã®éã - tanamonã®æ¥è¨
http://d.hatena.ne.jp/tanamon/20120924/1348491831
IDFAï¼Identification For AdvertisersãAdvertising Identifierï¼åºåèå¥åï¼ã®è©±ã
æµ·å¤ãªã¯ã¼ãä¼ç¤¾ã«ãããIDFAã®å©ç¨ç¶æ³ã¨ãããããIDFAã£ã¦ãªãã ããï¼ï¼That's the Way to GO!ï¼ITmedia ãªã«ã¿ããã£ãã»ããã°
http://blogs.itmedia.co.jp/jinmsk/2013/10/idfaidfa-7baf.html