I need to get any number, serial, key or whatever to identify every device where my phonegap app is running, I think uuid also changes when the app updates so it wouldn't work for me.
The scenario here is that the user can synchronize data from the app, so I need to know which device has synchronized and which has not, or if it needs to update new data that maybe others devices have already done, etc
any ideas?
After getting the device info you can apply your logic to validation.
Refer: http://docs.phonegap.com/en/3.2.0/cordova_device_device.md.html#Device
I suggest to use this PhoneGap/Cordova plugin:
https://github.com/Paldom/UniqueDeviceID
As declared in the documentation
When a user first installs the app you could make an API call to get a unique ID from the system you are using to sync data and then you could store that ID in a localStorage variable, or to a database table. Then you refer to that ID stored on the device when making calls.