Comments (10)
Same error.
there are many people getting same errors.
web-push-libs/web-push#254
its 6 days, no response on this issue? anyone listening here?
from web-push-codelab.
The main thing to check when doing this is to ensure the vapid keys you use with web push OR the companion app is matching with the subscription
I'll update the companion app to the latest web push incase that's the issue.
from web-push-codelab.
Same issue here.
Seems to work fine in Firefox (currently 50.1.0 / also worked in 47.0.2)with the mozilla endpoint:
https://updates.push.services.mozilla.com/wpush/v2/
Does not work in chrome (55.0.2883.87 (Official Build) m (32-bit)) with Firebase endpoint:
https://fcm.googleapis.com/fcm/send/
Others had mentioned setting the vapid keys to expire after 12hours instead of 24, and some had some luck with setting the server clock back a few minutes.
Any thoughts on what we can do for chrome here?
Edit: Forgot to mention that both browsers are the windows builds.
from web-push-codelab.
Sorry guys, I'm in idiot. I was printing the endpoint object to the console and pasting from there. the chrome console truncated it (had "..." somewhere in the middle) where as the firefox console did not.
It works as advertised for me now. Sorry for the confusion.
from web-push-codelab.
Argh - I hate that truncation. I raised an issue with Chrome to fix that but still haven't seen it land :(
I'm going to close this bug for now as I just updated web-push to a newer version that should help with this if the expiration was the issue.
from web-push-codelab.
I faced the very same issue of truncated text in the Chrome's console. However, I made the right decision of taking a break right after it happened to me rather than spending unnecessarily many hours on it.
Please do include a note in the code lab about this!
from web-push-codelab.
If I don't print the subscription to the terminal, do you think people would copy from the web page UI instead?
from web-push-codelab.
I don't understand. Perhaps you're talking about running the companion site locally; I've only done the frontend part and intend to implement the backend later. If I wasn't clear earlier, I had already managed to push notifications from the companion site successfully by the time I wrote the first comment.
One final note, I didn't work through the codelab. I just started adding the functionality to an existing app right away (and it worked).
from web-push-codelab.
So, what I mean is that where you said "I faced the very same issue of truncated text in the Chrome's console." one fix for this is to simply not show the subscription in the console, forcing everyone to grab the subscription from the page itself - Which I've made the change and submitted it to the codelab.
from web-push-codelab.
That would definitely fix the issue, assuming the developer is working through the codelab (probably most). But in my case, I didn't go through the codelab and added the functionality to an existing app - I just finished my initial backend implementation for push notifications.
from web-push-codelab.
Related Issues (20)
- Unsubscribe Event does not remove subscription from browser settings
- Code worked but no pop up for notifications HOT 2
- the key in the authorization header does not correspond to the sender ID used to subscribe this user HOT 1
- How does it work?
- Doesn't redirect to new tab when click on Allow in notification
- web-push-codelab.glitch.me is down
- Bug: missing step in tutorial, in notification click
- Latency in google web push GCM responses after january 2019
- MissmatchSenderId HOT 1
- Send Push Message Error
- 403 - forbidden HOT 1
- push notifications are not working HOT 2
- The text is only shown in the console
- Web Notification & bug HOT 1
- Failed to execute 'atob' on 'Window' HOT 3
- Error in description
- Not working in Microsoft Edge HOT 1
- Does not load the page https://web-push-codelab.glitch.me/ HOT 7
- it helped me to show notification on web. thankyou so much for that but it isn't showing notification on mobile. what i have to do. Waiting for the solution with hope.
- Cannot read property 'pushManager' of null 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 web-push-codelab.