Is Ti.Platform.id unique on Android?

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

Hi all,

In the API document, it says that Ti.Platform.id is the unique id of the device. But is it really unique on Android?

In android document, it says that Settings.Secure.ANDROID_ID is a 64-bit number (as a hex string) that is randomly generated on the device's first boot and should remain constant for the lifetime of the device. (The value may change if a factory reset is performed on the device.), which means it's not a unique string.

Or is there anyway to get the IMEI number for Android devices?

Thanks.

2 Answers

From what I understand, in theory the ID was supposed to be unique on android devices. But in OS 2.2, virtually all Droid2 handsets report the exact same value. There may be other instances too. See this discussion.

As to the second question, if there is a way to get the IMEI, I don't personally know what it is.

Nicole

There is no reliable way to determine the device ID, for the reason Doug rightly explains.

A better approach is to generate an installation ID on first boot. Read this article for a full explanation.

Only mobile phones have an IMEA number - so the problem with this is that not all Android devices are mobile phones these days. ;)

Your Answer

Think you can help? Login to answer this question!