Skip to content

Releases: peter-gribanov/serviceworker

Use time in notification data

13 Feb 13:21
Compare
Choose a tag to compare

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

13 Feb 13:45
Compare
Choose a tag to compare

Use default notification handler

13 Feb 13:26
Compare
Choose a tag to compare

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",
  }
}