Use org.apache.cordova.device.Device plugin