Returned mac-address is the same for different devices

微笑、不失礼 提交于 2019-12-06 14:32:49

Sorry guys, I was not attentive enough. When I was talking about the devices, I should mention that one of them was actually a simulator (with iOS 7), and the other was a device with iOS 7. So now I've found in the Apple documentation, that:

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

So, identifierForVendor is exactly what I wanted. It's a pity though, that now in the code a developer should sort out different iOS versions support even for that thing.

Have a look at this link eliminates-mac-address-as-tracking-option-signaling-final-push-towards-apples-own-ad-identifier-technology

According to this

“The MAC address, a hardware based identifier, has long been a way for advertisers to have a permanent, unique identifier for each device, providing a stable tracking option as an alternative to the controversy-plagued UDID,” Palli explains. “However, the same privacy concerns raised about the UDID apply equally to the MAC address – it just received less publicity,” he adds. Now, for those who haven’t yet made the switch to IDFA, the window to migrate is closing.

According to data collected by mobile app marketing firm Fiksu, which helps app publishers with user acquisition efforts, iOS 7 devices – all beta testers, at this point – are always now returning a MAC address of 02:00:00:00:00:00. This “dummy” address is the equivalent of the phone number 555-1212, for example. It began showing up for the tens of thousands of unique iOS 7 devices in Fiksu’s logs earlier this week, says Craig Palli, Fiksu’s mobile app marketing technology platform head.

please use following link for UDID , because you can not use directly by first may 2013 https://github.com/gekitz/UIDevice-with-UniqueIdentifier-for-iOS-5/tree/master/UIDeviceAddition

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!