Skip to content

Notification (main process) doesn't emit click and show events. #21610

@pjebs

Description

@pjebs

OS: macOS High Sierra
Electron: v6.1.7

Notifications (Main process) work perfectly on Mac EXCEPT they don't seem to emit events.

const n = new Notification({
    body: 'Lorem Ipsum Dolor Sit Amet'
  });

console.log(n.eventNames()) // displays []

  n.on("click", () => {
// Doesn't work
    console.log('Notification clicked')
    app.quit();
  });

  n.show();

I am only running on Dev.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions