-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Remove settings button from native notifications on Linux #6194
Comments
Could you please show some sample to trigger it? I tried some from chrome app notification sample but it doesn't show any settings button under Linux... |
When using the new window.Notification( "foo", {
message: "bar",
actions: []
}); The window.chrome.notifications.create( "id", {
type: "basic",
title: "foo",
message: "bar",
iconUrl: "file:///path/to/icon"
}) (remember to set the |
CC @Christywl can you verify? |
No, NWjs adds the settings button and reacts to clicks with opening the blank Chromium settings window.
// normal click here
new Notification( "foo", { message: "bar", actions: [] } );
// settings click here
new Notification( "foo", { message: "bar", actions: [] } ); |
@rogerwang |
Maybe it fallbacks to rich notification somehow. Anyway I'll disable the code you referred to. |
This is fixed in git and will be available in the next nightly build. |
@rogerwang Many thanks for the great work. |
Hi, I hope this is the right issue tracker for issues regarding nwjs' chromium.src repo...
In #4560, you said you wanted to wait for Chromium to implement native notifications on all platforms instead of re-adding the functionality back to 0.13. Chromium has now finally implemented native notifications on Linux after doing so on macOS a few months ago:
--enable-features=NativeNotifications
feature flag in Chromium 59 / NWjs 0.23) (https://crbug.com/326539)Now to the issue:
Native notifications created by Chromium on both macOS and Linux always include a "Settings" action button. In NWjs, clicking this settings button opens a new window with a blank site. This behavior can't be changed or disabled, because it is hardcoded and it is super annoying. Especially since notifications with and without actions can be displayed completely differently on the system. And having such a settings button is confusing for the end user.
On macOS, you've already disabled the behavior in NWjs 0.25:
On Linux, this is still enabled and needs a fix:
Thanks for your consideration!
The text was updated successfully, but these errors were encountered: