2

I need to send a unique number per device to server to trace the application install and create its specific device number.

When i use to generate the unique number by some logic, and make it to store in the local db, but on uninstalling and again installing the application, the generated number is different. So i'm not able to get the data for that device been used previously.

Do we have some way to make/generate this unique number ?

4

2 回答 2

2

您应该使用 System 属性来获取一些唯一编号,而不是通过一些复杂的逻辑生成唯一编号。

即使在卸载和重新安装后,您也可以使用System.get_property()并获取phone_id对于所有设备都是唯一的。

System.get_property("phone_id")

在此处查看整个属性列表http://docs.rhomobile.com/rhodesapi/system-api#getproperty

于 2013-09-14T14:26:31.363 回答
0

是的,上述方法仅适用于 android,在最近的 iPhone(5.0 之后)中,我们无法通过程序访问设备唯一 ID(uuid)。

于 2014-07-30T06:12:19.327 回答