Reputation: 423
I followed Google's codelab "Adding Push Notifications to a Web App" (https://developers.google.com/web/fundamentals/codelabs/push-notifications/) - it works with Chrome.
But in Firefox 55 no notification shows up when I press the "Test Push Notification" button in about:debugging#workers, though in the console "[Service Worker] Push Received." is outputted.
No idea where to investigate first... Anyone can help?
Upvotes: 0
Views: 206
Reputation: 423
Yay, I found the reason why Firefox didn't show the notification. It's in this original line from Google codelab:
console.log(`[Service Worker] Push had this data: "${event.data.text()}"`);
Firefox seems to dislike the ` but doesn't throw any warning or error in the service worker's console.
Upvotes: 1