you can use OpenUDID
OpenUDID is a drop-in replacement for the deprecated uniqueIdentifier
property of the UIDevice class on iOS (a.k.a. UDID) and otherwise is
an industry-friendly equivalent for iOS and Android, and most recently
Windows C# and Silverlight (see links above).
The agenda for this community driven project is to:
Provide a reliable proxy and replacement for a universal unique device
identifier. That is, persistent and sufficiently unique, on a per
device basis. NOT use an obvious other sensitive unique identifier
(like the MAC address) to avoid further deprecation and to protect
device-level privacy concerns Enable the same OpenUDID to be accessed
by any app on the same device Supply open-source code to generate and
access the OpenUDID, for iOS and Android Incorporate, from the
beginning, a system that will enable user opt-out to match Apple’s
initial intent