class
flagrate.Notify
The flagrate.Notify object provides a notification UI. also, supports Desktop Notifications.
Example
// create and initialize a Notify instance
var notify = flagrate.createNotify({
title: 'Somehow Web App'
});
// create notify
notify.create({ text: 'Hello' });
setTimeout(function () {
notify.create({
text : 'Hey, are you awake?',
onClick: function () {
notify.create({ text: 'Aaaah' });
}
});
}, 1000 * 30);
Related
- Web Notifications (W3C)