[GH-ISSUE #720] Android App - Broadcast happens immediately, not when action button is tapped #527

Closed
opened 2026-05-07 00:25:05 +02:00 by BreizhHardware · 3 comments

Originally created by @arnbrhm on GitHub (May 9, 2023).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/720

🐞 Describe the bug
Per the documentation

The broadcast action sends an Android broadcast intent when the action button is tapped.

I am using Tasker to launch an app when the intent action io.heckel.ntfy.USER_ACTION is broadcast. When the message notification is displayed by the ntfy app, along with the action button, Tasker fires as though it has received the intent action (without me tapping the action button). Also, if I open the ntfy app and tap on the action button, nothing happens.

💻 Components impacted
Android app

💡 Screenshots and/or logs
none

🔮 Additional context
a snippet of my code:

    ;Create a HTTP COM object
    $oHttp = ObjCreate("winhttp.winhttprequest.5.1")
 
    With $oHttp
        ;Open POST request
        .Open("POST", "https://ntfy.sh/Broadcast-Test", False)

        ;Set request headers and options
        .SetRequestHeader("Content-Type", "text/plain")
        .SetRequestHeader("Title", "This is the title")
        .SetRequestHeader("Action", "broadcast, Open App")
Originally created by @arnbrhm on GitHub (May 9, 2023). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/720 :lady_beetle: **Describe the bug** Per the documentation > The broadcast action sends an Android broadcast intent when the action button is tapped. I am using Tasker to launch an app when the intent action io.heckel.ntfy.USER_ACTION is broadcast. When the message notification is displayed by the ntfy app, along with the action button, Tasker fires as though it has received the intent action (without me tapping the action button). Also, if I open the ntfy app and tap on the action button, nothing happens. :computer: **Components impacted** Android app :bulb: **Screenshots and/or logs** none :crystal_ball: **Additional context** a snippet of my code: ``` ;Create a HTTP COM object $oHttp = ObjCreate("winhttp.winhttprequest.5.1") With $oHttp ;Open POST request .Open("POST", "https://ntfy.sh/Broadcast-Test", False) ;Set request headers and options .SetRequestHeader("Content-Type", "text/plain") .SetRequestHeader("Title", "This is the title") .SetRequestHeader("Action", "broadcast, Open App") ```
BreizhHardware 2026-05-07 00:25:05 +02:00
Author
Owner

@binwiederhier commented on GitHub (May 10, 2023):

  1. Logs from Android would be helpful here.
  2. Note that there are two different broadcasts. One happens when a message is received (https://docs.ntfy.sh/subscribe/phone/#automation-apps), and one when the button is tapped (https://docs.ntfy.sh/publish/#send-android-broadcast)
<!-- gh-comment-id:1541041308 --> @binwiederhier commented on GitHub (May 10, 2023): 1. Logs from Android would be helpful here. 2. Note that there are two different broadcasts. One happens when a message is received (https://docs.ntfy.sh/subscribe/phone/#automation-apps), and one when the button is tapped (https://docs.ntfy.sh/publish/#send-android-broadcast)
Author
Owner

@wunter8 commented on GitHub (May 10, 2023):

It's working fine for me in Tasker. This is how I set up the Intent Received profile

Screenshot_20230509-194028

<!-- gh-comment-id:1541167578 --> @wunter8 commented on GitHub (May 10, 2023): It's working fine for me in Tasker. This is how I set up the `Intent Received` profile ![Screenshot_20230509-194028](https://github.com/binwiederhier/ntfy/assets/8421688/33d9fede-f865-4007-8616-a29f1665f4ed)
Author
Owner

@arnbrhm commented on GitHub (May 10, 2023):

This was my rookie mistake. I mixed up io.heckel.ntfy.USER_ACTION and io.heckel.ntfy.MESSAGE_RECEIVED in Tasker. I wasn't aware that there were two different broadcasts.

<!-- gh-comment-id:1541175136 --> @arnbrhm commented on GitHub (May 10, 2023): This was my rookie mistake. I mixed up io.heckel.ntfy.USER_ACTION and io.heckel.ntfy.MESSAGE_RECEIVED in Tasker. I wasn't aware that there were two different broadcasts.
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#527
No description provided.