UDID Unity 3.5+ iOS 5.0+

I have this dying need to use the UDID for ad display purposes, I’ve read that you can’t use the UDID anymore in iOS 5.0 / iOS 6.0 but this ad company constantly uses the UDID and is requiring the UDID for ad purposes. I am using the device’s unique identifier and it simply rejecting it(Since it’s not the UDID). Is it possible to retrieve the UDID in Unity or do I have to send it through native code?

You can use a GUID which is built into mono..

The issue is not having a unique identifier, I absolutely need the device’s UDID for ad purposes.

I thought due to ongoing security issues, that this was banned?

Well, regardless, you could write some code into say, the Appcontroller or something simple that just wrote the UDID as a string to the NSUserDefaults and then parse that off… (Nsuserdefaults == playerprefs).

There is a new API to get UDIDs just for that purpose. Check Apple’s documentation for 6.0. Also note that it’s opt-out.

you can use this now