native-notifier
native-notifier copied to clipboard
Not working on MacOSX 10.11
I tried running the example shown in the readme file -
const notify = require('native-notifier');
notify({
app: 'Loggy',
icon: `${__dirname}/icon.png`,
message: 'TypeError: stack is shown',
title: 'Loggy error'
});
But its not working. I tried this on Mac OSX 10.11
with NodeJS 6.10.2
.
Hey @ArunMichaelDsouza, thanks for the report.
Are you sure path to icon
is correct? Any way you can share stack trace? Thanks.
An update on the bug - I deleted the native-notifier
folder from my node_modules
and re-installed it. It seems to be working now as shown -
But as you can see, the icon is not getting rendered properly. I see the default icon on the notification. The path to icon
is correct. My code is same as above.
@ArunMichaelDsouza Don't know if this is still relevant three years on but...
Make sure your source image is 256x256 or 512x512, in order for sips
to transform it to the required icns file (which is what is happening under the hood) it apparently must be these dimensions.