Device plugin

Device plugin is really helpful in getting all the device related hardware and software information. Device objects are available in global scope, but only after the device is ready.

Ionic Native supports this plugin with devices and it has six static members to access data:

  • Device: Returns Object with Cordova, model, platform, UUID, and version, for example, Device.uuid
  • cordova: Returns string with specific Cordova versions
  • Model: Returns string with the device's model name
  • platform: Returns string with the operating system name
  • uuid: Returns string with the device's Universally Unique Identifier (UUID)
  • version: Returns string with the operating system version
  • isVirtual: Checks whether the device is running on a simulator ...

Get Hybrid Mobile Development with Ionic now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.