Closed Bug 1222476 Opened 9 years ago Closed 9 years ago

Notification with icon isn't shown

Categories

(Core :: DOM: Push Subscriptions, defect)

Unspecified
Linux
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox45 --- affected

People

(Reporter: marco, Unassigned)

References

Details

Attachments

(1 file)

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.
Working on Firefox Nightly on OSX
So it's a Linux specific issue.
OS: Unspecified → Linux
Blocks: 1201571
It works now.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WORKSFORME
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.
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?).
Attached image screen.png
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: