Skip to content

timbru31/cordova-plugin-android-device-information

Repository files navigation

cordova-plugin-android-device-information

Linting npm audit

Known Vulnerabilities

Commitizen friendly License npm

Apache Cordova plugin to get specific Android device information

Supported platforms

  • Android

Installation

from npm (recommended)

$ cordova plugin add cordova-plugin-android-device-information

from git (unstable)

$ cordova plugin add https://github.com/timbru31/cordova-plugin-android-device-information.git

Usage

Get one of the following properties (replace __X__)

  • getProduct
  • getOSVersion
  • getRelease
  • getSecurityPatch
  • getModel
  • getDevice
  • getSDK (returns a number)
  • getManufacturer
  • getBoard
  • getType
  • getDisplay
  • getHardware
  • getHost
  • getBrand
cordova.plugins.androidDeviceInformation.get_X_().then((value) => {
    // returns the value
});

Built by (c) Tim Brust and contributors. Released under the MIT license.