views:

438

answers:

2

Hey,

Is there a unique ID like the mac address for each iPhone / iPod Touch?

Do I have to ask the user for permissions to transmit such a unique id?

+5  A: 

Yes, you can get it using UIDevice's uniqueIdentifier property:

A unique device identifier is a hash value composed from various hardware identifiers such as the device’s serial number. It is guaranteed to be unique for every device but cannot publically be tied to a user account. You can use it, for example, to store high scores for a game in a central server or to control access to registered products. The unique device identifier is sometimes referred to by its abbreviation UDID.

Vladimir
thanks [[UIDevice currentDevice] uniqueIdentifier] works great !
Ghommey
A: 

pretty sure there will be a mac address that you can programmitcally access......

DUPLICATE POST on how to do this

Goober
is there a way to access this mac address using objC?
Ghommey