Thank you. I’m going to try it, it seems that it suits my needs better. Since it has to be the same even if the app is uninstalled.
I use Phonegap Build, i don’t know exactly how to call the plugin in the XML file.
I put this <plugin name="cordova-plugin-device" spec="~2.0.3" source="npm" /> (URL, VERSION, SOURCE) it’s correct.
How can i check if it’s ok.?
Try with this code but doesn’t work. document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
var deviceID = device.uuid;
var element = document.getElementById('textuuid');
element.innerHTML = 'Device Model: ' + deviceID + '<br />';
}