Device

Improve this doc

$ ionic plugin add cordova-plugin-device

Repo: https://github.com/apache/cordova-plugin-device

Access information about the underlying device and platform.

Usage

import {Device} from 'ionic-native';



console.log('Device UUID is: ' + Device.device.uuid);

Static Methods

device()

Returns the whole device object.

Returns: Object The device object.

Instance Methods

cordova()

Get the version of Cordova running on the device.

model()

The device.model 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.

platform()

Get the device’s operating system name.

uuid()

Get the device’s Universally Unique Identifier (UUID).

version()

Get the operating system version.

manufacturer()

Get the device’s manufacturer.

isVirtual()

Whether the device is running on a simulator.

serial()

Get the device hardware serial number.

API

Native

General