We've found a lot of problems with Windows notifications. They work (kind of) in the machine where I generate the appx file, but if I try to use them in another Windows I get the error:
Error: The specified module could not be found. \\?\C:\Users\MYUSER\AppData\Local\Temp\B759.tmp.node
|
I found this issue:
https://github.com/electron-userland/electron-builder/issues/580
Looking at the linked issue, I tried to use "asarUnpack": "*/.node" in package.json. With this configuration I get the error:
Error: The specified module could not be found.
|
\\?\C:\Program Files\WindowsApps\3312ADB7.MoodleDesktop_3.3.0.0_x64__t8q4t8fsbshw4\app\resources\app\node_modules\@nodert-win10\windows.data.xml.dom\build\Release\binding.node
|
It could be related to this issue:
https://github.com/electron/asar/issues/75
Once this is fixed, there were still a couple of problems:
- When clicking a notification with the app minimized, the app is restored BEHIND the current window. window.focus() doesn't seem to fix the problem.
- Clicking the notification in the Notification Center (after it has disappeared from the screen) does nothing. I opened this issue.