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

Fix terminateNotifications #20

Merged
merged 3 commits into from
Jun 6, 2022
Merged

Fix terminateNotifications #20

merged 3 commits into from
Jun 6, 2022

Conversation

sergiou87
Copy link
Member

This PR addresses two issues related to terminateNotifications:

  1. After the many API changes (or change attempts) in Add more control over notifications #13, I removed the terminateNotifications implementation for macOS.
  2. I noticed terminateNotifications still removed any pending notifications on Windows, which defeats the purpose of some of the changes in Add more control over notifications #13 about handling notifications from previous app sessions.

These changes are needed in order to unblock desktop/desktop#14733, which basically fixes an issue where a process is not closed along with the rest of the app on Windows 10 (but not 11) due to our notifications code (probably, the COM server used to handle the notifications).

Copy link

@tidy-dev tidy-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exports.Set(Napi::String::New(env, "showNotification"), Napi::Function::New(env, showNotification));
exports.Set(Napi::String::New(env, "closeNotification"), Napi::Function::New(env, closeNotification));
exports.Set(Napi::String::New(env, "requestNotificationsPermission"), Napi::Function::New(env, requestNotificationsPermission));
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this just a cleanup removal?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it was duplicated… 🤦

@sergiou87 sergiou87 merged commit 11a4b9a into main Jun 6, 2022
@sergiou87 sergiou87 deleted the fix-terminate-notifications branch June 6, 2022 12:51
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

2 participants