Push -Benachrichtigung JavaScript
function notifyMe(title,body) {
if (Notification.permission !== 'granted'){
Notification.requestPermission();
alert('Allow Notification Please');
}else {
var notification = new Notification(title, {
icon: '../assets/img/brand/logo.png',
body: body,
data: 'Nomad Chat',
vibrate: [200, 100, 200]
});
notification.onclick = function() {
window.open('chat.php');
};
}
}
faheem