Notfication API on android

This commit is contained in:
RobinLinus 2018-09-21 21:48:31 +02:00
parent 3601ace829
commit 390c72c933
3 changed files with 10 additions and 3 deletions

View file

@ -361,7 +361,8 @@ class Notifications {
const config = {
body: body,
icon: '/images/logo_transparent_128x128.png',
vibrate: [200, 100, 200, 100, 200, 100, 400],
// vibrate: [200, 100, 200, 100, 200, 100, 400],
// requireInteraction: true
}
if (serviceWorker && serviceWorker.showNotification) {
// android doesn't support "new Notification" if service worker is installed