question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] Extensions can no longer create notifications

See original GitHub issue

Steps to reproduce

The API call below no longer shows a notification in Firefox Nightly 200911 14:03.

Extension notifications on Android worked up to Firefox 78. In Firefox 79 and 80 the API call crashes the browser. This crash was recently fixed, but the end result is that notifications are no longer shown.

https://github.com/mozilla-mobile/fenix/issues/12910 https://bugzilla.mozilla.org/show_bug.cgi?id=1649494

browser.notifications.create({type: 'basic', title: 'Title', message: 'Message.'});

Device information

  • Android device: Android 9
  • Fenix version: Firefox Nightly 200911 14:03

┆Issue is synchronized with this Jira Task

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
dessantcommented, Oct 7, 2020

@jonalmeida, notifications do not show up at all, nothing happens when the API is called. The browser.notifications API only worked up to Firefox 78.

1reaction
agicommented, Oct 7, 2020

@kbrosnan no, we do notify AC of the notification through the WebNotificationDelegate::onShowNotification API (there’s a test for this in https://phabricator.services.mozilla.com/D88165), this is likely a bug in AC/Fenix.

Read more comments on GitHub >

github_iconTop Results From Across the Web

notification.create isn't creating any kind of notification
I want to create a kind of alert() popup since the alert method isn't supported by chrome. For my extension basically I just...
Read more >
Not Getting Notifications on Google Chrome? Here Are 10 ...
If your Chrome notifications aren't working properly, follow these steps to fix them in no time.
Read more >
Cannot create notification in Chrome Extension. Receive ...
Problem 1. The function modifyDOM doesn't run inside the background script. It's only declared there and you convert its code into a string ......
Read more >
iOS Notification extension error w… | Apple Developer Forums
Basically I send a push notification with mutable-content, but the extensions is not loaded, I see the following error when the OS tries...
Read more >
Use notifications to get alerts - Computer - Google Chrome Help
You can set up Chrome to get notifications, such as meeting reminders, from websites, ... If you're browsing in Incognito mode, you won't...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found