Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cordova-plugin-device-descriptor

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-device-descriptor

Cordova plugin to get the device's descriptor based on model (brand, name)

  • 1.0.2
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

cordova-plugin-device-descriptor

Platform Donate

This is a cordova plugin to get device's descriptor based on model (brand, name).

Underlying components:

Installation

cordova plugin add cordova-plugin-device-descriptor

Supported Platforms

  • Android
  • iOS

Usage

document.addEventListener("deviceready", onDeviceReady, false);

function onDeviceReady() {
  window.descriptor.get(successCallback, errorCallback);
}

function successCallback(result) {
  console.log(result);
}

function errorCallback(error) {
  console.log(error);
}

The plugin returns a JSON object.

Android return value example

{
  brand: "LGE",
  device: "p1",
  model: "LG-H815",
  name: "LG G4"
}

iOS return value example

{
  brand: "Apple",
  name: 'iPhone 5c',
  model: 'iPhone5,3',
  ANumber: [ 'A1456', 'A1532' ],
  FCCID: [ 'BCG‑E2644A' ]
}

Author

Peter Bakondy

LICENSE

cordova-plugin-device-descriptor is licensed under the MIT Open Source license. For more information, see the LICENSE file in this repository.

Keywords

FAQs

Package last updated on 01 Sep 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc