web-push-libs / pywebpush

Python Webpush Data encryption library
Mozilla Public License 2.0
314 stars 53 forks source link

Grouping of multiple notification not working #154

Open ukrolelo opened 1 year ago

ukrolelo commented 1 year ago

Greetings, i am using django-webpush that uses pywebpush,can somebody advise why its not working to group multiple notification from my django-webpush? I tested homeassistant html5 notify and my phone is able to group/replace a notification, how can i do it with django-webpush or pywebpush? timestamp = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S') payload = { "head": "CLOUD", "body": "Changes on N%s, click here" % stpnum, "icon": "/static/dist/img/logo.png", "badge": "/static/dist/img/logo.png", "url": "/home/%s/" % cpuid, "data": {"tag": "renotify","renotify": True}, "tag": "renotify", "default": True, "renotify": True, "timestamp": timestamp, } send_user_notification(user=user, payload=payload, ttl=1000)