A plugin to get device indetifier for Cordova 3.x.x
by Tamir Twina (github.com/tamirtw)
-
iOS
Reuires iOS 6.0+ -
Android
Coming soon
Through the Command-line Interface:
cordova plugin add https://github.com/tamirtw/cordova-plugin-device-identifier.git
Through the Command-line Interface:
cordova plugin rm com.tamirtw.cordova.plugin.device-identifier
Add the following xml to your config.xml to always use the latest version of this plugin:
<gap:plugin name="com.tamirtw.cordova.plugin.device-identifier" />
or to use this exact version:
<gap:plugin name="com.tamirtw.cordova.plugin.device-identifier" version="0.0.1" />
More informations can be found here.
- Added iOS support
The plugin creates the object window.plugin.deviceIdentifier
with two methods:
/*
* Get device vendor identifier
*/
window.plugin.deviceIdentifier.uniqueIdentifier(
function(Idfv) {
alert(Idfv);
}
);
This software is released under the MIT License.