Page 1 of 1

How can I get the id of the device running the app?

Posted: Thu Feb 25, 2016 4:28 pm
by Angela Temple Rogers

I want to send to my database via a REST API the id of the device that the app is running on. Is this possible?


How can I get the id of the device running the app?

Posted: Thu Feb 25, 2016 7:37 pm
by Serhii Kulibaba

Hello Angela,

Yes, it is possible. Please use device.uuid for that: https://cordova.apache.org/docs/en/2....


How can I get the id of the device running the app?

Posted: Wed Mar 02, 2016 12:24 am
by Angela Temple Rogers

I get an error saying device is undefined. I tried changing to the latest version of all the built-in resources (Cordova 4.0) but still no luck. Any suggestions?


How can I get the id of the device running the app?

Posted: Wed Mar 02, 2016 1:12 pm
by Serhii Kulibaba

It works only on the real device, but doesn't work on the browser test and on app tester.