# cordova-plugin-device-name

> Cordova Device Name Plugin

Latest version **1.3.5** (published 2019-03-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install cordova-plugin-device-name
pnpm add cordova-plugin-device-name
yarn add cordova-plugin-device-name
bun add cordova-plugin-device-name
```

## Health

**Score 18/100 (F)** — status: abandoned.

Positive: has types package; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.5 |
| Published | 2019-03-23 |
| First published | 2015-11-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/cordova-plugin-device-name) |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 11.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 15 |
| Author | Sylvain Bréjeon |
| Maintainers | becvert |
| Keywords | ecosystem:cordova, cordova-android, cordova-windows, cordova-ios, cordova, device, name |

## Links

- npm: https://www.npmjs.com/package/cordova-plugin-device-name
- Repository: https://github.com/becvert/cordova-plugin-device-name
- Issues: https://github.com/becvert/cordova-plugin-device-name/issues
- npm.io page: https://npm.io/package/cordova-plugin-device-name

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 1.3.5 (latest) — 2019-03-23
- 1.3.4 — 2018-07-23
- 1.3.3 — 2018-05-25
- 1.3.2 — 2017-10-14
- 1.3.1 — 2017-10-13
- 1.3.0 — 2017-09-07
- 1.2.1 — 2017-04-28
- 1.2.0 — 2017-04-25
- 1.1.0 — 2016-11-24
- 1.0.0 — 2015-11-30

## 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](https://github.com/becvert/cordova-plugin-device-name/blob/master/CHANGELOG.md)

## 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

---
_Source: https://npm.io/package/cordova-plugin-device-name · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
