Closed
Bug 1222476
Opened 9 years ago
Closed 9 years ago
Notification with icon isn't shown
Categories
(Core :: DOM: Push Subscriptions, defect)
Tracking
()
RESOLVED
WORKSFORME
Tracking | Status | |
---|---|---|
firefox45 | --- | affected |
People
(Reporter: marco, Unassigned)
References
Details
Attachments
(1 file)
14.94 KB,
image/png
|
Details |
To reproduce: - Clone https://github.com/marco-c/serviceworker-cookbook/tree/rich_push_notification - Run 'npm install' - Run 'gulp start-server' - Open 'http://localhost:3003/push-rich/index.html' - Click on the button The result is that no notification is shown. This is the service worker code: self.addEventListener('push', function(event) { event.waitUntil(self.registration.showNotification('ServiceWorker Cookbook', { lang: 'la', body: 'Alea iacta est', icon: 'caesar.jpg', vibrate: [500, 100, 500], })); }); If I comment out the line that defines the icon property, the notification is shown.
Comment 1•9 years ago
|
||
Working on Firefox Nightly on OSX
Reporter | ||
Comment 3•9 years ago
|
||
It works now.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WORKSFORME
Comment 4•9 years ago
|
||
This was probably a dupe of bug 1178061 but I'm guessing you're using Ubuntu where we now use XUL due to Ubuntu restrictions.
Reporter | ||
Comment 5•9 years ago
|
||
Yes, I forgot I changed my machine and OS in the meantime :) I've just tried on Fedora though, which is using libnotify, and it's working (intermittently?).
Reporter | ||
Comment 6•9 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•