Comments (7)
Yeah, as a bit of clarity:
TTL
is the number of seconds that a message should stay valid. Basically "If you can't delivery it right away, hang onto it for this long". Setting a TTL:0
means "If you can't deliver this message RIGHT NOW, get rid of it."
The max TTL
you can set depends on the service you're talking to, but for most, it's about a month. Honestly? I'd probably pick something more like 24 hours (86400). Notifications are supposed to be short, timely messages. You probably don't care that you got a new email 27 days ago, or that you package arrived 2 weeks ago, neither do your recipients.
from pywebpush.
O I found it, it's ttl
from pywebpush.
Can you elaborate on this TTL thing?
from pywebpush.
NVM, I also found it. It works great now!
from pywebpush.
I think it's better to make this field required because the default of 0 is pretty useless in most situations.
from pywebpush.
Good news?
For most push services, the field is required. It's just that the default value is 0.
from pywebpush.
It's just that the default value is 0.
I mean in the library itself, defaulting to 0 is the same thing as not required.
from pywebpush.
Related Issues (20)
- getting 401 Unauthorized after changing the vapid key HOT 1
- Authentication failling on Firefox and Chrome
- webpush modifies claims HOT 7
- Unable to send notification to chrome with data. HOT 3
- Update dependencies for 2021
- Request for new release HOT 5
- Vapid01 instance is not accepted as a key object
- KaiOS support HOT 4
- Send Bulk Push to multiple devices HOT 2
- Feature: get the encoded data ready for sending (for async interop) HOT 1
- Error : Web push send from python backend to fire base using VAPI keys. Unhashable type:'slice' HOT 7
- use unittest.mock instead of mock
- JWT token being refreshed too often HOT 8
- Error : Web push send from python backend HOT 4
- Async Send Function HOT 1
- Unauthorized error while sending notifications to edge device
- Is the library being maintained HOT 2
- Grouping of multiple notification not working
- Defination of payload 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 pywebpush.