[GH-ISSUE #261] Android Notification not opening the right topic #202

Closed
opened 2026-05-07 00:21:24 +02:00 by BreizhHardware · 6 comments

Originally created by @SMAW on GitHub (May 16, 2022).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/261

I think this is a bug, but when I leave the Android app in /topic1 and receive an notification for /topic2 and click on the notification, the app opens in /topic1 and not /topic2 as expected.

Originally created by @SMAW on GitHub (May 16, 2022). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/261 I think this is a bug, but when I leave the Android app in /topic1 and receive an notification for /topic2 and click on the notification, the app opens in /topic1 and not /topic2 as expected.
BreizhHardware 2026-05-07 00:21:24 +02:00
Author
Owner

@wunter8 commented on GitHub (Jun 5, 2022):

I was not able to reproduce this. Can you send a video/screencast showing the problem @SMAW?

<!-- gh-comment-id:1146895676 --> @wunter8 commented on GitHub (Jun 5, 2022): I was not able to reproduce this. Can you send a video/screencast showing the problem @SMAW?
Author
Owner

@binwiederhier commented on GitHub (Jun 5, 2022):

It happens to me too. It's definitely real. Not sure what's going on. I'll try to send you some details later.

<!-- gh-comment-id:1146895937 --> @binwiederhier commented on GitHub (Jun 5, 2022): It happens to me too. It's definitely real. Not sure what's going on. I'll try to send you some details later.
Author
Owner

@binwiederhier commented on GitHub (Jun 19, 2022):

I tried this too in the emulator but I couldn't reproduce it there either. I've definitely seen this happen.

<!-- gh-comment-id:1159795885 --> @binwiederhier commented on GitHub (Jun 19, 2022): I tried this too in the emulator but I couldn't reproduce it there either. I've definitely seen this happen.
Author
Owner

@wunter8 commented on GitHub (Aug 27, 2022):

After some testing today, it seems like whenever you click on a notification, it will open whatever topic that received the most recent notification. It doesn't seem to care about what topic you were looking at before or what notification you clicked on.

For example, after running curl localhost:8000/topic1; curl localhost:8000/topic2; curl localhost:8000/topic3, the app will open to topic3 when you click on any of the three notifications, even if you dismiss the topic3 notification before clicking on one of the other notifications.

I'm going to try digging into the code to figure out why this is

<!-- gh-comment-id:1229254513 --> @wunter8 commented on GitHub (Aug 27, 2022): After some testing today, it seems like whenever you click on a notification, it will open whatever topic that received the most recent notification. It doesn't seem to care about what topic you were looking at before or what notification you clicked on. For example, after running `curl localhost:8000/topic1; curl localhost:8000/topic2; curl localhost:8000/topic3`, the app will open to `topic3` when you click on any of the three notifications, even if you dismiss the `topic3` notification before clicking on one of the other notifications. I'm going to try digging into the code to figure out why this is
Author
Owner

@binwiederhier commented on GitHub (Nov 27, 2022):

I can confirm that this happens in the SDK 33 emulator.

<!-- gh-comment-id:1328153459 --> @binwiederhier commented on GitHub (Nov 27, 2022): I can confirm that this happens in the SDK 33 emulator.
Author
Owner

@binwiederhier commented on GitHub (Nov 28, 2022):

Fixed here: github.com/binwiederhier/ntfy-android@3d1d062f4d

<!-- gh-comment-id:1328940288 --> @binwiederhier commented on GitHub (Nov 28, 2022): Fixed here: https://github.com/binwiederhier/ntfy-android/commit/3d1d062f4d392516068e607586c4d413f71948b8
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#202
No description provided.