UIDevice-with-UniqueIdentifier-for-iOS-5 icon indicating copy to clipboard operation
UIDevice-with-UniqueIdentifier-for-iOS-5 copied to clipboard

MAC id deprecated in iOS 7

Open tushar4inkoniq opened this issue 12 years ago • 6 comments

Making UniqueIndentifier using the MAC ID not going to work on IOS 7. Need some other technique if possible.

tushar4inkoniq avatar Jul 17 '13 12:07 tushar4inkoniq

Hi. I'm using macaddress to identify device. Could you tell me which string will be generated by '- macaddress' method on iOS 7? Is its output always the same?

cymonn avatar Jul 22 '13 07:07 cymonn

Are you sure that MAC address won't be available? I'm testing on iOS7 Simulator and the MAC address is retrieved fine.

lubbo avatar Sep 13 '13 08:09 lubbo

@lubbo You may not retrieve MAC address on iOS7 device. I found apple document mentioned about it.

https://developer.apple.com/library/prerelease/ios/releasenotes/General/WhatsNewIniOS/Articles/iOS7.html#//apple_ref/doc/uid/TP40013162-SW34

In iOS 7 and later, if you ask for the MAC address of an iOS device, the system returns the value 02:00:00:00:00:00. If you need to identify the device, use the identifierForVendor property of UIDevice instead. (Apps that need an identifier for their own advertising purposes should consider using the advertisingIdentifier property of ASIdentifierManager instead.)

cymonn avatar Sep 13 '13 08:09 cymonn

Do someone have any resource link to know how to manage a "UUID migration" ?

Glideh avatar Sep 20 '13 08:09 Glideh

I found out that one of my app user crashed because uniqueGlobalDeviceIdentifier method somehow return nil on iOS 7. This is weird since most of the users have mac address 02:00.......

benck avatar Oct 26 '13 06:10 benck

@Glideh look at this lib FCUUID

fabiocaccamo avatar Oct 13 '14 13:10 fabiocaccamo