How to get iPad DeviceID?

You must Login before you can answer or comment on any questions.

Each iPad has a unique DeviceID, but I'm having trouble finding how to obtain this through Appcelerator API. I've read this:

http://developer.appcelerator.com/blog/2011/10/the-new-way-we-udid.html

...and I'm seeing that Titanium.Platform.id is deprecated in favor of something that simply generates a unique ID. I don't want something generated by Titanium API -- I want the actual iPad DeviceID that never changes. Would that be the same as Mac Address? As in Titanium.Platform.macaddress ? Same as DeviceID?

2 Answers

Accepted Answer

Hi ZeroGravPro,

you can get this by... Ti.Platform.getId()

— answered 1 year ago by Mitul Bhalia
answer permalink
3 Comments
  • I believe that call is the same as calling "id" property, which is deprecated, so I wasn't sure. Thanks anyway.

    — commented 1 year ago by ZeroGravPro Developer

  • please try to call this function several times and take a look at the returned IDs. Do they change?

    — commented 1 year ago by Matthias Fliegner

  • the ID will change on each time the application is installed, it's not a device ID as such but rather a unique App ID

    it's possible that 2 devices can have the same App ID but very unlikely

    — commented 7 months ago by Dallas Clark

Your Answer

Think you can help? Login to answer this question!