mirror of
https://github.com/RobinLinus/snapdrop.git
synced 2025-05-16 15:40:10 -07:00
Notfication API on android
This commit is contained in:
parent
600d3551f4
commit
5a631d3833
@ -361,7 +361,8 @@ class Notifications {
|
|||||||
const config = {
|
const config = {
|
||||||
body: body,
|
body: body,
|
||||||
icon: '/images/logo_transparent_128x128.png',
|
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) {
|
if (serviceWorker && serviceWorker.showNotification) {
|
||||||
// android doesn't support "new Notification" if service worker is installed
|
// android doesn't support "new Notification" if service worker is installed
|
||||||
|
Loading…
x
Reference in New Issue
Block a user