Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zero TTL Not Working #491

Closed
renegadeHomie opened this issue Aug 8, 2019 · 1 comment · Fixed by #492
Closed

Zero TTL Not Working #491

renegadeHomie opened this issue Aug 8, 2019 · 1 comment · Fixed by #492

Comments

@renegadeHomie
Copy link
Contributor

renegadeHomie commented Aug 8, 2019

According to the spec here, a zero TTL means that the message is not stored by FCM and only delivered to endpoints that are online at that moment.

In my testing using the node web-push library, when I am setting TTL to ZERO in the options object as follows :
const options = { gcmAPIKey: <api_key>, vapidDetails: { subject: 'mailto:[email protected]', publicKey: <public_key>, privateKey: <private_key> }, TTL: 0 }

But receiving the web-push even after keeping the device offline for half hour.

Tested for both latest Chrome and Firefox.

Please help!

@marco-c
Copy link
Member

marco-c commented Aug 8, 2019

Duplicate of #284.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants