Phonegap和Angularjs-iOS唯一标识符
Phonegap and Angularjs - iOS unique identifier
我正在开发一个Angularjs+phonegap应用程序,我需要的是为所有应用程序用户获得一个唯一的标识符。
我想从设备上获取电话号码,但看起来不可能,不是吗?
如果无法获得电话号码,你还有其他想法吗?
浏览器或设备是否有我可以通过javascript/angularjs获得的唯一标识符?
您可以使用device.uuid
,它将返回一个唯一的字符串。该字符串的生成方式因设备制造商而异:
// Android: Returns a random 64-bit integer (as a string, again!)
// The integer is generated on the device's first boot
//
// BlackBerry: Returns the PIN number of the device
// This is a nine-digit unique integer (as a string, though!)
//
// iPhone: (Paraphrased from the UIDevice Class documentation)
// Returns a string of hash values created from multiple hardware identifies.
// It is guaranteed to be unique for every device and cannot be tied
// to the user account.
//
// Windows Phone 7 : Returns a hash of device+current user,
// if the user is not defined, a guid is generated and will persist until the app is uninstalled
//
// Tizen: returns the device IMEI (International Mobile Equipment Identity or IMEI is a number
// unique to every GSM and UMTS mobile phone.
但是应该足以识别应用程序实例的唯一性。
相关文章:
- 三星智能电视唯一的设备标识符
- JavaScript:将 URL 字符串转换为唯一标识符
- 在Chart.js段中嵌入唯一标识符
- 如何重新编码我的jQuery/JavaScript函数,使其更通用,不需要唯一标识符
- Facebook 连接唯一的秘密用户标识符
- 获取对象的唯一标识符
- 在 JavaScript 中创建唯一标识符
- 有没有办法获取谷歌浏览器实例的唯一标识符
- 永久唯一移动设备标识符(Evercookie?)
- chase.com 登录流是否使用 JavaScript 中的设备唯一标识符
- 使用1个HTML表单:要求用户提供唯一标识符,从数据库中获取记录,解析为JSON,使用jquery填充插件填充HTML页
- AJAX 响应消息唯一标识符
- Phonegap和Angularjs-iOS唯一标识符
- 使用微时间作为唯一标识符的潜力
- Jquery . AJAX():唯一的AJAX查询标识符
- 在JavaScript中生成一个(非udid)标识符来唯一标识iOS设备
- 如何将元素个性化为唯一标识符
- Javascript根据唯一标识符替换十六进制
- 如何用IP地址和其他标识符唯一地识别访问者
- 使用key属性作为唯一标识符