Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-2160

Fix Windows notifications

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Do
    • DEV backlog
    • None
    • Electron

    Description

      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:

      1. 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.
      2. Clicking the notification in the Notification Center (after it has disappeared from the screen) does nothing. I opened this issue.

      Attachments

        Activity

          People

            jleyva Juan Leyva
            dpalou Dani Palou
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: