@totvs/mingle-ionic-device
v1.0.0-20200724.2
Published
Device Ionic package
Downloads
37
Maintainers
Keywords
Readme
@TOTVS/MINGLE-IONIC-DEVICE
This Package get informations about the device.
Installation
Using npm:
$ npm install --save @totvs/mingle-ionic-device
// using ES6 modules
import { DevicePlugin } from @totvs/mingle-ionic-device;
// using CommonJS modules
var devicePlugin = require('@totvs/mingle-ionic-device')
Usage
Create an instance of the DevicePlugin:
var devicePlugin = new DevicePlugin();
getDeviceInfos
This method is used to retrieve information about the device. The returned array contains the following fields:
- CONTAINER_VERSION: Version of Cordova running on the device;
- MANUFACTURER: Device's manufacturer;
- MODEL: The 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: Device's operating system name (Android, Browser, iOS, Windows and OSX );
- PLATFORM_VERSION: Operating system version
- SERIAL: Hardware serial number;
- UUID: Device's Universally Unique Identifier;
this.devicePlugin.getDeviceInfos();
getDeviceUUID
This method is used to retrieve the device's Universally Unique Identifier (UUID).
this.devicePlugin.getDeviceUUID();