binwiederhier / ntfy

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

Add apple shortcuts to documentation #1024

Open Anonymous4045 opened 9 months ago

Anonymous4045 commented 9 months ago

:bulb: Idea

I noticed that the ntfy iOS app lacks support for Apple Shortcuts to send notifications. I don't have a clue how those are made, but I figured out you can make simple POST requests with some web shortcuts. Here's a shortcut I often use, I set it so I get alerts when my phone goes below 20%. I'm sure there's many other applications for this as well. Therefore, I think it's worth considering adding instructions for this in the documentation. IMG_1081

:computer: Target components

Documentation

wunter8 commented 9 months ago

Thanks!

There are 2 iOS shortcuts on this page already, but I'm not sure how they compare to yours: https://docs.ntfy.sh/integrations/

Anonymous4045 commented 9 months ago

One of those uses a third-party app, but ntfy-ios-url-share does use pretty much the same method of sending requests it would seem.

Anonymous4045 commented 9 months ago

On closer inspection, it looks like the one I just linked doesn't really work. I tried sending a message and the notification came like this. Top one is sent with my method, bottom is with the url share one. IMG_1087

wunter8 commented 9 months ago

The bottom one is just using JSON POSTing. When you send a JSON body, you need to send it to https://ntfy.domain com instead of https://ntfy.domain.com/mytopic

Anonymous4045 commented 9 months ago

Ah, I see, thanks.