question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No notifications on macOS after build

See original GitHub issue

I am getting notifications in my Electron app when it is in dev mode, but after it is built there are no notifications present.

I have my build setup with:

  node: {
    __filename: true,
    __dirname: true
  },

to account for webpacker and I also have my development and distribution profiles setup in Xcode which are detected during an Electron build. So I can (mostly) eliminate most of the common Electron and electron-builder issues that could cause node-notifier to be a problem.

Any thoughts here? I have no errors in the Console logging app.

What could be causing this?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:1
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
leekangtaqicommented, Feb 11, 2020

@Noitidart add asarUnpack option to electron-builder

"build": {
    "asarUnpack": [
      "./node_modules/node-notifier/vendor/**"
    ],
    ...
}
2reactions
Noitidartcommented, Apr 7, 2019

Same problem here on macOS. When in dev mode it works fine, but when prod it doesnt’ work.

It is working in dev mode even though I have:

  node: {
    __dirname: false,
    __filename: false
  },

I am using https://github.com/electron-react-boilerplate/electron-react-boilerplate boilerplate.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Change Notifications settings on Mac - Apple Support
To change these settings, choose Apple menu > System Settings, then click Notifications in the sidebar. (You may need to scroll down.)
Read more >
Notification does not trigger userNotificationCenter on macOS ...
When I click notification, app launches but userNotificationCenter is not triggered (I don't see #testapp notification triggered in Console app, ...
Read more >
Troubleshoot Slack notifications on macOS Big Sur
You'll find a list of apps in your macOS notification preferences. If Slack doesn't appear in this list, or if you're not receiving...
Read more >
Configuring Build Notifications - Travis CI Docs
Currently, the following ciphers (as defined by the openssl gem) are known to work: ... Pull Request builds do not trigger email notifications....
Read more >
Fixes or workarounds for recent issues in Outlook for Mac
Outlook for Mac features, add-ins, and know issues ... [FIXED] Search in Outlook for Mac returns no results after installing macOS Monterey 12.1....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found