Skip to content
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: allow immediate MacOS notifications #16060

Merged
merged 4 commits into from Dec 14, 2018

Conversation

codebytere
Copy link
Member

@codebytere codebytere commented Dec 13, 2018

Description of Change

Resolves #15789.

Refactors notification posting on MacOS to allow for some notifications to deliver immediately regardless of whether or not the subscribing app is active or not.

Only NSDistributedNotificationCenter has access to the deliverImmediate selector, so I split out the DoPostNotification helper into the calling functions as it now make more sense for each to just call the methods themselves rather than call out to a helper. deliverImmediate was also added as an optional new param so as to maintain backwards compat.

/cc @ckerr

Checklist

  • PR description included and stakeholders cc'd
  • npm test passes
  • tests are changed or added
  • relevant documentation is changed or added
  • PR title follows semantic commit guidelines

Release Notes

Notes: allow for MacOS notifications to be immediately delivered

@codebytere codebytere requested review from a team December 13, 2018 23:36
@codebytere codebytere changed the title feat: allow immediate MacOS notifications [wip] feat: allow immediate MacOS notifications Dec 13, 2018
@codebytere codebytere changed the title [wip] feat: allow immediate MacOS notifications feat: allow immediate MacOS notifications Dec 13, 2018
docs/api/system-preferences.md Outdated Show resolved Hide resolved
Co-Authored-By: codebytere <codebytere@github.com>
@codebytere codebytere merged commit 280f9bf into master Dec 14, 2018
@release-clerk
Copy link

release-clerk bot commented Dec 14, 2018

Release Notes Persisted

allow for MacOS notifications to be immediately delivered

@codebytere codebytere deleted the notification-delivery-immediate branch December 14, 2018 21:46
@nornagon
Copy link
Member

Hey @codebytere, the release notes here are confusing because "notification" sounds like it means Notification. Can you edit @release-clerk's notes and clarify?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants