Giter VIP home page Giter VIP logo

Comments (7)

jrconlin avatar jrconlin commented on July 26, 2024 1

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.

salimbuet09 avatar salimbuet09 commented on July 26, 2024

O I found it, it's ttl

from pywebpush.

khangly avatar khangly commented on July 26, 2024

Can you elaborate on this TTL thing?

from pywebpush.

khangly avatar khangly commented on July 26, 2024

NVM, I also found it. It works great now!

from pywebpush.

khangly avatar khangly commented on July 26, 2024

I think it's better to make this field required because the default of 0 is pretty useless in most situations.

from pywebpush.

jrconlin avatar jrconlin commented on July 26, 2024

Good news?

For most push services, the field is required. It's just that the default value is 0.

from pywebpush.

khangly avatar khangly commented on July 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.