How to get version of os?

how to get information of os and version of the os?

Hi,

You can use Cordova Device plugin in conjonction with ng-cordova.

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);
})

1 Like