Skip to content

Share911/cordova-plugin-device-name

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cordova Device Name Plugin

This plugin allows you to get the user-friendly name of the device.

CHANGELOG

Installation

In your application project directory:

cordova plugin add cordova-plugin-device-name

Usage

var deviceName = cordova.plugins.deviceName;

console.log(deviceName.name) // e.g: Becvert's iPad

deviceName.get(function success(name) {
    console.log(name);
}, function failure(error) {
    console.log(error);
});

if you installed cordova-plugin-device you can use:

window.device.name

Credits

All the credits go to the official cordova-plugin-device plugin.

Licence

The MIT License

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 44.6%
  • Java 40.2%
  • Objective-C 15.2%