How to read Mobile Hardware and Operating system Details in Ionic

Author - Varun Chopra
8.03.2019
|
0 Comments
||

Steps to read Mobile Hardware and Operating system Details in Ionic

To get the mobile hardware and operating system information you can use device plugin in ionic framework.
Installation:

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

Platform:

  • Android
  • Browser
  • iOS
  • macOS
  • Windows

Use:

Properties:
1. device.cordova – Get the version of Cordova running on the device.
2. 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.
3. Device.platform – Get the device’s operating system name.
4. Device.uuid – Get the device’s Universally Unique Identifier (UUID).
5. Device.version – Get the operating system version.
6. Device.manufacturer – Get the device’s manufacturer.
7. device.isVirtual – whether the device is running on a simulator or emulator.
8. Device.serial – Get the device hardware serial number (SERIAL).

Webner Solutions is a Software Development company focused on developing Insurance Agency Management Systems, Learning Management Systems and Salesforce apps. Contact us at dev@webners.com for your Insurance, eLearning and Salesforce applications.

Leave a Reply

Your email address will not be published. Required fields are marked *