diff --git a/README.md b/README.md index d5a399a..1b5cd95 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,14 @@ cordova plugin add cordova-plugin-device-name ```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); +}); ``` ## Credits