Releases: peter-gribanov/serviceworker
Releases · peter-gribanov/serviceworker
Use time in notification data
Use custom time in notification data for change notification message on client
Example request:
{
"to": "...",
"data": {
"title": "Ералаш",
"body": "Начало в 16:30.",
"icon": "https://eralash.ru.rsz.io/sites/all/themes/eralash_v5/logo.png?width=192&height=192",
"click_action": "http://eralash.ru",
"time": "1487003400",
}
}
Use button for subscribe to notifications
Update index.html
Use default notification handler
Example request:
{
"to": "...",
"notification": {
"title": "Ералаш",
"body": "Начало в 16:30.",
"icon": "https://eralash.ru.rsz.io/sites/all/themes/eralash_v5/logo.png?width=192&height=192",
"click_action": "http://eralash.ru",
}
}