I’m facing a problem here, I was using this library UIDevice with UniqueIdentifier for iOS 5 to generate a unique identifier for iOS device, its just simple md5 hash of mac address. And everything was ok, I’ve published app in the appstore, and after some time I’ve decided to write small update. My app uses dedicated server for api, so identifying user is very important. But when I started my app after update (I was integrating TapJoy) – I had another mac address, and other unique identifier. I thought mac address cannot change, am I wrong? Same keeps happening in simulator and on the device.
I’m facing a problem here, I was using this library UIDevice with UniqueIdentifier for
Share
Yeah, so i figured it out. Its all about TapJoy. Their library implements
[[UIDevice currentDevice] macadress]method. Also, UIDevice with UniqueIdentifer for iOS 5 implements the same method. Difference between them – is colons in mac address. TapJoy implementation doesn’t have them, when UniqueIdentifier does. And when you use both of this libraries at same time, it can cause issues. So be warned! What I did, was simply renaming method[[UIDevice currentDevice] macadress]in UniqueIdentifier lib, to[[UIDevice currentDevice] macadress_colons]and it did the trick.