cordova-plugin-android-device-information

Cordova plugin to get specific Android device information

Usage no npm install needed!

<script type="module">
  import cordovaPluginAndroidDeviceInformation from 'https://cdn.skypack.dev/cordova-plugin-android-device-information';
</script>

README

cordova-plugin-android-device-information

Build Status

Dependency Status devDependency Status Known Vulnerabilities

Commitizen friendly Dependabot Status License npm

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.