Closed rodrigozanatta closed 13 years ago
I give you 2 ways to access a global identifier.
The first one [[UIDevice currentDevice] uniqueDeviceIdentifier] is for one App only because it uses a mix of the bundle identifier + the mac address of the device.
The second one [[UIDevice currentDevice] uniqueGlobalDeviceIdentifier] is global, because it uses only the mac address.
The hash which is generated from both functions contains lower case letters, but that shouldn't be the problem. It doesn't mind if you use lower or uppercase letters, because you only want to track the device ;)
Hope that helps.
Lol, Sory again. I only want to ask for you: when I use [[UIDevice currentDevice] uniqueIdentifier], the Apple way, it generate global or local.
I thought I have to use a device to test it, but no. The answer is: [[UIDevice currentDevice] uniqueIdentifier] = Global.. For any program, this will be the same.
So, you create a new way to identifier :)
I never thought about it, but this old way is global for all app, or only for one bundle identifier app? You give us this 2 way :)
For making this noise, I give you this function (I can't sent by git because my "stupid" firewall). Your code give a identifier that don't look like the apple one. Is only put this code to solve: