New! Check out Ionic Native. It's like ngCordova but for ES6 and TypeScript.


Grab device related information, such as platform, and device model.

cordova plugin add cordova-plugin-device



Get all device information.

Returns Object — returns cordova, model, platform, UUID, and version information


Get the version of Cordova running on the device.

Returns String


The getModel() returns the name of the device’s model or product. The value is set by the device manufacturer and may be different across versions of the same product.

Returns String — eg: iPhone 5 : "iPhone 5,1", Nexus One : "Passion"


Get the device’s operating system name.

Returns String — eg: "iOS", "Android", "WinCE"


Get the device’s Universally Unique Identifier (UUID). The details of how a UUID is generated are determined by the device manufacturer and are specific to the device’s platform or model.

Returns String


Get the operating system version.

Returns String — eg: iOS 8.2 : "8.2", Froyo OS : "2.2"


module.controller('MyCtrl', function($scope, $cordovaDevice) {

  document.addEventListener("deviceready", function () {

    var device = $cordovaDevice.getDevice();

    var cordova = $cordovaDevice.getCordova();

    var model = $cordovaDevice.getModel();

    var platform = $cordovaDevice.getPlatform();

    var uuid = $cordovaDevice.getUUID();

    var version = $cordovaDevice.getVersion();

  }, false);