How To Get Unique Device Id From A Jquery, HTML5 Mobile App
I am building mobile apps for iOS, Android and Blackberry, Here's how I do this I build an app using jQuery, HTML5. Make a Zip file of that package. Using http://build.phonegap.co
Solution 1:
device.uuid
, gives you something like that but as the docs says
Not a reliable value
http://docs.phonegap.com/en/2.2.0/cordova_device_device.md.html#device.uuid
Maybe you can store a GUID, Pseudo-Random Number or something generated at install time... (i really mean, the first time you run the app)
UPDATE: JS Pseudo-Random Number Implementation: Create GUID / UUID in JavaScript?
Solution 2:
Have you looked at the device object provided by cordova? http://docs.phonegap.com/en/2.2.0/cordova_device_device.md.html#Device
You should be able to determine what platform your app is running on at runtime.
Post a Comment for "How To Get Unique Device Id From A Jquery, HTML5 Mobile App"