native-notifier icon indicating copy to clipboard operation
native-notifier copied to clipboard

Not working on MacOSX 10.11

Open ArunMichaelDsouza opened this issue 7 years ago • 3 comments

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.

ArunMichaelDsouza avatar Jul 08 '17 13:07 ArunMichaelDsouza

Hey @ArunMichaelDsouza, thanks for the report.

Are you sure path to icon is correct? Any way you can share stack trace? Thanks.

shvaikalesh avatar Jul 10 '17 14:07 shvaikalesh

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 -

screen shot 2017-07-10 at 11 22 00 pm

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 avatar Jul 10 '17 17:07 ArunMichaelDsouza

@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.

msaspence avatar Aug 27 '20 19:08 msaspence