-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
feat: On macOS, Closing Notifications Triggers the 'close' Event #13306
feat: On macOS, Closing Notifications Triggers the 'close' Event #13306
Conversation
💖 Thanks for opening this pull request! 💖 We use semantic commit messages to streamline the release process. Before your pull request can be merged, you should update your pull request title to start with a semantic prefix, OR prefix at least one of your commit messages. Examples of commit messages with semantic prefixes:
Things that will help get your PR across the finish line:
We get a lot of pull requests on this repo, so please be patient and we will get back to you as soon as we can. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using these APIs will prevent MAS apps being added to the store (using private apis is against MAS rules).
Can you wrap the notification center delegate code with if not defined checks for MAS please.
f026da9
to
63c209e
Compare
I wrapped both calls inside Cheers, |
Dear @MarshallOfSound are the changes i added enough to satisfy the MAS requirements? Kind regards |
63c209e
to
4a77cf5
Compare
4a77cf5
to
1c56284
Compare
Congrats on merging your first pull request! 🎉🎉🎉 |
That's awesome. Cheers. |
🤷🏽♂️ Previous Behaviour
On macOS, notifications created via ´Electron.Notification´ module do not emit the
close
event when closing them via the "Close"-button.🤷🏽♂️ Screenshot
🎯 New Behaviour
When clicking the "Close" button, Notifications created via ´Electron.Notification´ now emit the expected
close
event. This is supported by bothAlert
- and ´Banner´-style notifications, and also works when dismissing multiple notifications at the same time.