New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
serviceWorkerRegistration.showNotification does not work #13041
Comments
遇到了,同样的问题, Electron 2.0.2 也是如此~ |
+1. Experiencing this issue on 1.8 |
I can confirm this is still a problem in electron |
There are any updates? |
Same behavior on Electron v.5.0.6, v6.0.0-beta12, v7.0.0-nightly. self.registration.showNotification('test') does nothing, but works in Chrome. |
is there any update on this please? |
Same behavior with Electron v9.0.4. Any update or a possible ETA ? |
Electron doesn't currently support persistent notifications. We would consider PRs that added support, but have no plans to work on it in the immediate future. See e.g.
|
Still the same in Electron v11.1.1 I'd love it if this was implemented. It'd mean I'd be able to create notifications with buttons which you can only do from a service worker. |
Please implement this! We have to drop election otherwise. |
@Raybao are you seriously threatening to not use Electron in a project that's so serious that you can afford to change its core framework? |
One of the most basic and most critical features. Not possible to create serious apps otherwise. |
👍 please electron team, add this api |
Is there a way we can add a shim that will override this and forward the notification to the regular Notification api? |
Still would love to see this! I might give it a go, but I don't expect to get far, since I don't know any C++, nor have any experience with Chromium development. Since this is implemented in Chromium, I am hoping that some elaborate copy&pasta might be enough. |
Expected Behavior
notification should be shown
Actual behavior
notification not shown
To Reproduce
here example: https://github.com/dregenor/showNotification.git
click "Show Notification"
in browser all works fine.
example:
result:
The text was updated successfully, but these errors were encountered: