Browse Source

Notfication API on android

RobinLinus 6 năm trước cách đây
mục cha
commit
5a631d3833
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      client/scripts/ui.js

+ 2 - 1
client/scripts/ui.js

@@ -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