binwiederhier / ntfy

Send push notifications to your phone or desktop using PUT/POST
https://ntfy.sh
Apache License 2.0
17.8k stars 691 forks source link

web view works, but android app doesn't #1176

Open umk0m1qk opened 2 weeks ago

umk0m1qk commented 2 weeks ago

Describe the bug web view works, but android app doesn't Components impacted android app Screenshots and/or logs See log attached This is a log of the ntfy.txt

Additional context Steps to reproduce:

wunter8 commented 2 weeks ago

That's not how UnifiedPush works. ntfy forwards the messages received on the UnifiedPush topic to the app that registered the topic behind the scenes. You won't see anything in the ntfy app for UP messages. If the messages sent to the UP topics are not in the correct format, the UP app that registered the topic will not display a notification either. The only way to test a UP topic is to trigger a notification in that app (e.g., send/receive a message in 0xChat that should trigger a notification)

umk0m1qk commented 2 weeks ago

Thanks for the response. I'm a bit confused, though, because the topic link we are sending test messages to using $ curl -d is the UP topic link generated from within Amethyst by selecting "ntfy" as the push notification option. If I'm understanding you correctly, we shouldn't be able to send anything to this link except UP from the originating app (Amethyst), and yet, we can from terminal and the messages show in the ntfy web app.

The reason we're exploring this is because UP from Amethyst (and 0xchat) paired with ntfy is not working at all - zero push notifications are arriving on the above described device.

wunter8 commented 2 weeks ago

You can send stuff to the topic using curl, but it won't create a visible notification on your phone because it's not in the format Amethyst is expecting.

Yes, you can see the notifications in the web browser if you manually subscribe to the randomly generated topic url. You'd be able to see both Amethyst's notifications (in their proper format) and your manual notifications.

If neither UP app is working, it seems something is misconfigured. Do you have auth set up on your server? If so, did you create the anonymous write up* auth rule?

If that's not the issue, it could be that your base-url isn't configured properly.

(If you can, Discord is often better for troubleshooting problems like this)