-
Notifications
You must be signed in to change notification settings - Fork 322
-
Notifications
You must be signed in to change notification settings - Fork 322
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
No notifications on macOS after build #272
Comments
Any thoughts? |
the same here |
the same problem on windows |
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:
I am using https://github.com/electron-react-boilerplate/electron-react-boilerplate boilerplate. |
same here |
My package.json (scroll it) {
…
"main": "main.js",
"scripts": {
"postinstall": "electron-builder install-app-deps",
"start": "electron main.js",
"pack": "build --dir",
"dist": "build"
},
"build": {
"appId": "my.app.id",
"dmg": {
"contents": [
{
"x": 110,
"y": 270
},
{
"x": 370,
"y": 270,
"type": "link",
"path": "/Applications"
}
]
},
"mac": {
"category": "productivity",
"extendInfo": {
"CFBundleURLName": "myapp",
"CFBundleURLSchemes": [
"myapp"
]
}
},
},
"dependencies": {
"electron-is-dev": "^1.1.0",
"electron-updater": "^4.0.6",
"electron-window-state": "^5.0.3",
"node-notifier": "^5.4.0",
"url-parse": "^1.4.6"
},
"devDependencies": {
"asar": "^1.0.0",
"electron": "^4.1.4",
"electron-builder": "^20.39.0",
"electron-packager": "^13.1.1",
"electron-reloader": "^0.2.0"
}
} |
I tried with this instruction : https://github.com/mikaelbr/node-notifier#within-electron-packaging. That generates very heavy .dmg and .zip files, and node-notifier still don't work. Moreover i don't have errors in my Developer Console. Electron renderer.js var notifier = require('node-notifier');
…
function Notify() {
console.log('Notify');
notifier.notify({
'title': 'BLABLA',
'subtitle' : 'BLABLA1',
'message': 'BLABLA2',
'closeLabel': 'Close',
'actions': ['Open'],
'sound': 'Pop',
'wait': true,
});
} |
After working one full day on node-notifier problems with Electron, i chose to use node-mac-notifier which works great under production. As an example Slack use |
You may need this: node-notifier-in-electron-vue |
@ReAlign that's interesting, thanks for sharing. Even if wearen't using Vue though? |
@Noitidart no, it‘s is just a simple handling of the situation , I am just simple processing, ensure that can be used. |
I fixed it with |
@Noitidart add
|
@leekangtaqi Thanks! You made my day!! |
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:
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 andelectron-builder
issues that could causenode-notifier
to be a problem.Any thoughts here? I have no errors in the
Console
logging app.What could be causing this?
The text was updated successfully, but these errors were encountered: