mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[GH-ISSUE #1332] Actions work from laptop/pc but not from ios app (ipad/iphone) #941
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#941
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @vingerha on GitHub (May 10, 2025).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1332
🐞 Describe the bug
Hi, I may be asking for the expected response but still
I am using home-assistant to create notifications and I would like to use an action to trigger something back in HA.
After a bit of fumbling around I ended up with below message/object which actually works fine albeit only fromm my laptop or pc. The iPhone and iPad apps do not do anything, not even an error....and debugging is pretty tricky (for me)
Q1: is this a known issue for http?
Q2: any tips to get into more details of the issue?
Note: I can create this using either curl or home-assistant (via the hacs/ntfy integration)
💻 Components impacted
latest server running in docker on ubuntu 22.04
ios apps
💡 Screenshots and/or logs
Sadly no logs...ios (why oh why)
@wunter8 commented on GitHub (May 10, 2025):
I'm not sure why that would be. Maybe it's a certificate trust issue? iOS doesn't trust your Home Assistant cert but your other devices do??
As an initial debug, try sending an http request to another website, such as one at https://webhook.site.
I just tested it with the following request, and things worked fine:
curl -d 'test' -H "Action: http, test, https://webhook.site/7dece5c9-c5ae-47c6-98e9-23487063a492, method=POST, headers.Authorization=Bearer here, headers.Content-Type=application/json, body={\"action\": \"turn on\"}" https://ntfy.domain.com/test@vingerha commented on GitHub (May 11, 2025):
Appreciate the return, thanks and this goes a bit beyond my level of exp.
This is what I used
The same notification, from 3 devices on the same network (same wifi AP) and 3 diff. results
It does throw a cors error, this I had before on the home assistant server too but that I got resolved on HA itself.
@vingerha commented on GitHub (May 11, 2025):
Update... I got someone elses android tablet to test too and that one kicked back a 'hostname [servername] not verified] and with some digging I added a certificate to the sub(!)-domain on which my HA is installed and lo-and-behold.... it works now also on iPhone and iPad.
Closing this ticket and thanks for the feedback
@vingerha commented on GitHub (May 11, 2025):
Another update. I found out the issue. My server is on a subdomain via revproxy. My ha is on name.synology.me, the devserver that I am testing is on hadev.name.synology.me. For the latter there was a sercurity warning as the certificate for the main doman was not working on the subdomain (my lack of knowledge). This I could only find via someone elses android tablet that finally threw a logicla error. After adding a cert. for the subdomain all is working..laptop/pc, tablet, phone on ios and android