[GH-ISSUE #1156] Action button not clearing notification after button is pressed (iOS) #816

Open
opened 2026-05-07 00:27:44 +02:00 by BreizhHardware · 0 comments

Originally created by @iptvcld on GitHub (Jul 21, 2024).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1156

When i click on an action button, it is not clearing the message. This is an example from node red

var entity = msg.data.attributes.friendly_name;
var entityId = msg.data.entity_id;
var message = `--Not Home ALERT-- ${entity} was left ${msg.payload}!`;

msg.payload = {
    "topic": "xxx222",
    "message": message,
    "actions": [
        {
            "action": "http",
            "label": "Turn Off",
            "url": "http://192.168.2.3:8123/api/webhook/123xxx",
            "body": JSON.stringify({ "action": "turn_off", "entity_id": entityId }),
            "clear": true
        },
        {
            "action": "http",
            "label": "Leave On",
            "url": "http://192.168.2.3:8123/api/webhook/321xxx",
            "body": JSON.stringify({ "action": "leave_on", "entity_id": entityId }),
            "clear": true
        }
    ]
};

return msg;

Sends the message fine and when i click on the button my webhook sees it fine as well but the message does not clear from my notifications

Originally created by @iptvcld on GitHub (Jul 21, 2024). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1156 When i click on an action button, it is not clearing the message. This is an example from node red ``` var entity = msg.data.attributes.friendly_name; var entityId = msg.data.entity_id; var message = `--Not Home ALERT-- ${entity} was left ${msg.payload}!`; msg.payload = { "topic": "xxx222", "message": message, "actions": [ { "action": "http", "label": "Turn Off", "url": "http://192.168.2.3:8123/api/webhook/123xxx", "body": JSON.stringify({ "action": "turn_off", "entity_id": entityId }), "clear": true }, { "action": "http", "label": "Leave On", "url": "http://192.168.2.3:8123/api/webhook/321xxx", "body": JSON.stringify({ "action": "leave_on", "entity_id": entityId }), "clear": true } ] }; return msg; ``` Sends the message fine and when i click on the button my webhook sees it fine as well but the message does not clear from my notifications
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#816
No description provided.