The plugin can be installed via the Cordova command line interface:
- Navigate to the root folder for your phonegap project. 2) Run the command.
cordova plugin add https://github.com/Zaspire/ubuntu-plugin-pushnotications.git
document.addEventListener('deviceready', function() {
ubuntu.pushNotification.watchNotifications(function(){
ubuntu.pushNotification.getNotifications(function(o){
document.write(o)
})
})
}, false);