Nativefier: Support flag to disable desktop notifications for site

Created on 13 Feb 2018  路  4Comments  路  Source: jiahaog/nativefier

Description

I've packaged an app that frequently sends notifications via the desktop notification API, I can't seem to opt out for the packaged app.

Steps to reproduce issue

Package a web page that sends notifications via the Notifications API.

Details

  • Are you nativefying a public website?
    Yes, but Login is required before issue is observable.
  • Full nativefier command used to build your app: npm install nativefier -g
  • Version of Nativefier (run nativefier --version): 7.5.4
  • Version of node.js (run node --version): v6.11.2
  • OS: macOS High Sierra
  • Error message / stack trace (if any):
<Error message / Stack trace here>
feature-request

Most helpful comment

A workaround is to use the --inject option to inject a .js file with the line delete window.Notification

All 4 comments

@StyxOfDynamite thanks for the feedback. What do you mean by "I can't seem to opt out for the packaged app"?

So in browser, I can disable certain sites from posting notifications.

image

I have this disabled for most if not all sites, including the one I'm attempting to package up. Once the website is packaged/bundled I was never asked if the electron app should be allowed to show notifca tions, and I can't seem to disable them.

Ah, no, we don't have that feature for now, neither as flag nor in the interface. Contributions welcome 馃檪.

A workaround is to use the --inject option to inject a .js file with the line delete window.Notification

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jasonivers picture jasonivers  路  4Comments

citrusui picture citrusui  路  3Comments

DougBeney picture DougBeney  路  5Comments

marcelocecin picture marcelocecin  路  4Comments

robertmylne picture robertmylne  路  5Comments