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

Android Notification not opening the right topic #261

Closed
SMAW opened this issue May 16, 2022 · 6 comments
Closed

Android Notification not opening the right topic #261

SMAW opened this issue May 16, 2022 · 6 comments
Labels
android-app ntfy Android app 🪲 bug Something isn't working

Comments

@SMAW
Copy link
Contributor

SMAW commented May 16, 2022

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.

@binwiederhier binwiederhier added 🪲 bug Something isn't working android-app ntfy Android app labels May 16, 2022
@wunter8
Copy link
Contributor

wunter8 commented Jun 5, 2022

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

@binwiederhier
Copy link
Owner

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

@binwiederhier
Copy link
Owner

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

@wunter8
Copy link
Contributor

wunter8 commented 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

@binwiederhier
Copy link
Owner

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

@binwiederhier
Copy link
Owner

Fixed here: binwiederhier/ntfy-android@3d1d062

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android-app ntfy Android app 🪲 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants