Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- messaging.onMessage(function(payload) {
- var obj = jQuery.parseJSON(payload.data.notification);
- var notification = new Notification(obj.title,
- {
- icon: obj.icon,
- body: obj.body
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement