PhoneGap / Cordova unique device id (UUID) plugin for Android, iOS and Windows Phone 8. Remains the same after app uninstall.
Latest stable release: phonegap local plugin add hu.dpal.phonegap.plugins.uniquedeviceid
or cordova plugin add hu.dpal.phonegap.plugins.uniquedeviceid
Current state from git: phonegap local plugin add https://github.com/Paldom/UniqueDeviceID.git
or cordova plugin add https://github.com/Paldom/UniqueDeviceID.git
Add following to config.xml: <gap:plugin name="hu.dpal.phonegap.plugins.uniquedeviceid" />
or <gap:plugin name="hu.dpal.phonegap.plugins.uniquedeviceid" source="plugins.cordova.io" />
- Android
- iOS
- Windows Phone 8
// Get UUID
window.plugins.uniqueDeviceID.get(success, fail);
Success callback function:
function success(uuid)
{
console.log(uuid);
};