Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grouping of multiple notification not working #115

Open
ukrolelo opened this issue Mar 16, 2023 · 0 comments
Open

Grouping of multiple notification not working #115

ukrolelo opened this issue Mar 16, 2023 · 0 comments

Comments

@ukrolelo
Copy link

ukrolelo commented Mar 16, 2023

Greetings,
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?
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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant