Comments (8)
Ok, thank you.
from ntfy.
Can you give a concrete example? Remember that the GET requires that you add /json or /raw or /sse at the end. Check out the examples on https://ntfy.sh/#subscribe-api
from ntfy.
Do curl -d "long process is down" ntfy.sh/duolabs333
, then curl -s ntfy.sh/duolabs333/raw
. Nothing returns.
from ntfy.
Oh I see the confusion. The GET is a connection that stays open forever. If you open the GET first and then PUT/POST you'll see your messages in the GET. I should make a video...
You can also poll using ?poll=1
I'm not on my computer, otherwise I'd give you a detailed example.
from ntfy.
Ok, I see that now.
from ntfy.
Is there a way to get the last n
messages?
from ntfy.
Long polling (connection stays open forever (:
# In window 1 (do this FIRST)
curl -s ntfy.sh/duolabs333/raw
# In window 2
curl -d "long process is down" ntfy.sh/duolabs333
Polling:
# In window 1
curl -d "long process is down" ntfy.sh/duolabs333
# In window 2
curl -s "ntfy.sh/duolabs333/raw?poll=1"
Check out the since= param to message since a timestamp.
from ntfy.
Since: https://ntfy.sh/#fetching-cached-messages
from ntfy.
Related Issues (20)
- Add support for VEDV (https://github.com/yunielrc/vedv)
- Add TTS (Text-to-speech) to notifications
- Need to refresh app in IOS to see notifications HOT 5
- phone not receiving notifications HOT 1
- Exit feature HOT 2
- Show notification time in mobile app
- ntfy PWA on iOS (Safari) spam refreshing HOT 1
- No push notifications on Android app HOT 1
- Android: base URL can not be set in settings dialog HOT 6
- Umlauts in tags HOT 2
- iOS not pushing notifications. Ntfy needs to be refreshed to view them. HOT 12
- Airplane mode: no new notifications
- "Unread notifications" view
- Nested topics possible? ie: my-topic/group1 or my-topic/group2 HOT 5
- Windows notification icon display issue
- Add Total Topics and Total Subscriptions to the `/v1/stats` API HOT 5
- iOS notifications not working on 5G, but works on Wi-Fi HOT 16
- Android app: Markdown support HOT 2
- iOS safari : nav in the way after you get a message ?
- Feature Request: Native Windows App for Desktop HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ntfy.