The device plugin defines a global device object that describes the device's hardware and software. It is very important to note that the device object is available after the "deviceready"
event occurs. In order to use the device plugin in our Apache Cordova project, we need to use the following cordova plugin add
command:
> cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-device.git