This namespace represents the Cocoon Notification extension for local notifications
Example
//Set up notification listener Cocoon.Notification.Local.on(notification, function(userData){ console.log("A local notification has been received: " + JSON.stringify(userData)); }); // Initialize the service. Ready to start receiving notification callbacks // The service will be automatically registered after the initialization. This may show a Dialog to request user permissions. // You can disable autoregister with {register: false} params and call Cocoon.Notification.Local.register() manually to control when the permissions dialog is shown. // By default the register parameter is set to true. Cocoon.Notification.Local.initialize({register: false}, function(registered) { if (!registered) { alert('Local notifications disabled by user') } })