Search docs/

Device

v2.0.2

Contents

Installation

In order to use Ionic Enterprise Edition plugins you should make sure you're using the Ionic Enterprise Cordova CLI as the regular version can have issues with scoped plugins.

npm uninstall -g cordovanpm install -g @ionic-enterprise/cordova

Once you've installed the Ionic Enterprise Cordova CLI you can install the plugin.

ionic enterprise register --key=YOURPRODUCTKEYionic cordova plugin add @ionic-enterprise/device

Index

Classes


Classes

Device

Device:

name: Device

description: Access information about the underlying device and platform.

usage:

import { Device } from '@ionic-enterprise/device/ngx';

constructor(private device: Device) { }

...

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

cordova

● cordova: string

Get the version of Cordova running on the device.


isVirtual

● isVirtual: boolean

Whether the device is running on a simulator.


manufacturer

● manufacturer: string

Get the device's manufacturer.


model

● model: string

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

● platform: string

Get the device's operating system name.


serial

● serial: string

Get the device hardware serial number.


uuid

● uuid: string

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


version

● version: string

Get the operating system version.



Other Versions