[GH-ISSUE #1364] Copy to Clipboard Action #962

Closed
opened 2026-05-07 00:29:09 +02:00 by BreizhHardware · 2 comments

Originally created by @SudoWatson on GitHub (Jun 5, 2025).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1364

💡 Idea
A new type of action for copying a specified value to the clipboard.

I'm currently writing a program that scans my emails for one time passcodes, and when found, sends a notification of the code to my phone so I don't need to check my email. It would be nice if there was a button I could click that would copy the code to my clipboard. In the app you can hold to copy the entire contents of the notification, but I want to copy it directly from the notification and don't want to open another app to get the code. I also may want more information in the notification that I don't want copied, such as the app the code is for.

The new action could look like

{
  "action": "copy",
  "label": "Copy",
  "value": "1234",
}

Where the value (in this case "1234") gets copied to the system clipboard.

💻 Target components
The server would need to handle the new action type. I'm not sure if the apps would need to handle the new action copying to clipboard, or if the OS would handle that with whatever the server sends.

I'm open to working on this if the idea is approved.

Originally created by @SudoWatson on GitHub (Jun 5, 2025). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1364 :bulb: **Idea** A new type of action for copying a specified value to the clipboard. I'm currently writing a program that scans my emails for one time passcodes, and when found, sends a notification of the code to my phone so I don't need to check my email. It would be nice if there was a button I could click that would copy the code to my clipboard. In the app you can hold to copy the entire contents of the notification, but I want to copy it directly from the notification and don't want to open another app to get the code. I also may want more information in the notification that I don't want copied, such as the app the code is for. The new action could look like ```json { "action": "copy", "label": "Copy", "value": "1234", } ``` Where the value (in this case "1234") gets copied to the system clipboard. :computer: **Target components** The server would need to handle the new action type. I'm not sure if the apps would need to handle the new action copying to clipboard, or if the OS would handle that with whatever the server sends. I'm open to working on this if the idea is approved.
Author
Owner

@acress1 commented on GitHub (Nov 16, 2025):

Would be totally useful! 🫶🏻

<!-- gh-comment-id:3539160034 --> @acress1 commented on GitHub (Nov 16, 2025): Would be totally useful! 🫶🏻
Author
Owner

@binwiederhier commented on GitHub (Feb 16, 2026):

This is done in ntfy server 2.17.0 (released) and ntfy Android 1.23.0 (rolling out shortly)

<!-- gh-comment-id:3909269039 --> @binwiederhier commented on GitHub (Feb 16, 2026): This is done in ntfy server 2.17.0 (released) and ntfy Android 1.23.0 (rolling out shortly)
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#962
No description provided.