This plugin allows you to get the user-friendly name of the device.
On Android, a bluetooth adapter must be present.
In your application project directory:
cordova plugin add cordova-plugin-device-name
var deviceName = cordova.plugins.deviceName;
console.log(deviceName.name) // e.g: Becvert's iPad
All the credits go to the official cordova-plugin-device plugin.
The MIT License