-
Notifications
You must be signed in to change notification settings - Fork 171
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: toast notification #382
Conversation
a90e05b
to
b535a66
Compare
I'll approve it myself once I've checked it on Windows, though id like to also check on the other platforms we have just to do a full check. So id like @roldanjr to also review :) |
This fixes #367 |
b535a66
to
017cbd7
Compare
I can only check the AppImage package once this fix is published. I only have a Linux machine right now and don't have access to Mac and Windows. |
app/main/src/main.ts
Outdated
title: "READY TO BE INSTALLED", | ||
message: "Update has been successfully downloaded.", | ||
actions: ["Quit and Install", "Install it Later"], | ||
callback: (err, response) => { | ||
if (!err) { | ||
if (response === "quit and install") { |
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.
For some reason this callback seems to be undefined. Though the update installs anyway.
So the icons show fine but something is odd with the response.
When you dismiss it it does seem to respond with dismissed. Ill need to check the events on windows and mac as well as any other callback logic functions as expected.
Need to re-visit this to fix it once I get a bit more time. |
Maybe we can release the new version of the app after you've figured out the fix for this @sekwah41. Thank you for your effort on this one 🙇🏼 |
I am not back on windows as my main OS. I will take a look at this today. |
Co-authored-by: Joseph Musser <me@jnm2.com>
17b22f8
to
e02a8cc
Compare
Ok so looks like there is an issue atm at least with node-notifier and how it uses snoretoast for multiple actions with custom appId's atm it only returns "undefined" with the notify response callback. So for now I'm commenting out the "Install it Later" option as users can just ignore the notifications on different operating systems. @roldanjr as long as you are ok with that the rest should be fine to merge. |
See mikaelbr/node-notifier#332 about the snoretoast issues. |
192710b
to
b036f3b
Compare
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.
This looks good to me @sekwah41 :D
Need to test if this works or not. Based on the documentation it seems like whatever installer/auto updater we have may be what is needed here. Though hopefully not.