cordova-plugin-device-name

Cordova Device Name Plugin

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
cordova-plugin-device-name
1441.3.55 years ago8 years agoMinified + gzip package size for cordova-plugin-device-name in KB

Readme

Cordova Device Name Plugin
This plugin allows you to get the user-friendly name of the device. On Android, a bluetooth adapter is required. Android emulator does not have bluetooth capabilities! CHANGELOG

Installation ##

In your application project directory: ```bash cordova plugin add cordova-plugin-device-name ```

Usage ##

```javascript 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: ```javascript window.device.name ```

Credits

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

Licence ##

The MIT License