Device

Contents

Access information about the underlying device and platform.

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

Ionic 设备 Device插件的安装(Installation)

ionic cordova plugin add cordova-plugin-device npm install @ionic-native/device

Ionic 设备 Device插件支持的平台(Supported Platforms)

  • Android
  • Browser
  • iOS
  • macOS
  • Windows

Ionic 设备 Device插件的用法(Usage)

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

constructor(private device: Device) { }

...

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