I need to get a unique id of the device (mobile, tablet, desktop) from my website. (not an app)
I searched online for a solution and I found that cordova.js provides this feature. I don't know how to use cordova on my project.
How do I set it up? I did add the Cordova.js file but it seems I'm missing some steps. How do I use cordova.js, or is there a better way to identify a device uniquely?
It looks like the
cordova.js
approach won't work, since it requires the full framework.If you just want a unique ID, you could generate a GUID in javascript, and then stick it in a cookie. and have code check if that cookie value exists, and if not, add it.