gekitz / UIDevice-with-UniqueIdentifier-for-iOS-5

Brings back the unique identifier support under iOS 5, it uses the device's mac address in combination with the bundle identifier to generate a new hashed unique identifier.
MIT License
1.24k stars 227 forks source link

MAC id deprecated in iOS 7 #22

Open tushar4inkoniq opened 11 years ago

tushar4inkoniq commented 11 years ago

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

cymonn commented 11 years ago

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?

lubbo commented 11 years ago

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

cymonn commented 11 years ago

@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.)

Glideh commented 11 years ago

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

benck commented 11 years ago

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.......

fabiocaccamo commented 10 years ago

@Glideh look at this lib FCUUID