You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It works well up to version 1.1.1.
Since version 1.1.2 displayBalloon does not work well. Especially when multiple asynchronous operations are made at the same time displayBalloon often ignored.
I can confirm that this still does not function when a .ico file is used for the icon. If I omit that, the balloon works and actually uses the application's icon, albeit a horrendously pixelated version of it. Using Windows 10.
Given that there exist workarounds for this, and that this isn't currently on our roadmap, i'm going to go ahead and label this a wontfix. However, should someone determine a workable solution we would be very open to accepting a PR!
Activity
zcbenz commentedon Jun 3, 2016
Did you pass icon to the balloon? And have you tried v1.2.1?
horious commentedon Jun 4, 2016
I found new information.
If I run electron with
--debugoption.displayBalloondoes not work wellIt occurs in version 1.2.1 too.
zcbenz commentedon Jun 6, 2016
Can you provide a minimal app that can reproduce this problem?
dataich commentedon Jun 15, 2016
Same things on 1.1.3 😢
djpereira commentedon Jun 27, 2016
@zcbenz I have the same issue.
I am using Windows 10 and electron 1.2.5.
Here's a very simple example: https://github.com/djpereira/electron-quick-start/tree/tray-balloon-issues
The weird thing is that it works at the beginning, however as you switch to other windows back and forth and keep trying, at some point the notifications stop showing up.
I am not sure about the exact pattern, but after switching around and resizing a few windows, the issue happens.
djpereira commentedon Jun 27, 2016
An additional thing that I noticed is that if I set the icon either via a string or a nativeImage, it just never works.
The code executes with no errors, but nothing happens. As @horious mentioned, it seems to work well with 1.1.1.
I don't know if it is relevant but my screen is set to 150% DPI.
wangxiexe commentedon Jun 28, 2016
I also found this issue, it stopped work after showing 5 messages on my win10.
zcbenz commentedon Jul 2, 2016
Hmm I don't know why but I can not reproduce this on either Windows 10 or 8.1.
djpereira commentedon Jul 2, 2016
@zcbenz let me see if I can put together more consistent repro steps.
sloom commentedon Jul 8, 2016
I also confirm this on 1.2.6 on Windows 7 (64bit)
9 remaining items
Use the PNG file instead of ICO for the system tray icon.
Use the PNG file instead of ICO for the system tray icon. (#267)
Apteryx0 commentedon Apr 25, 2017
For me changing my .ico files to .png did not work, however, calling setImage immediately before displayBalloon does....
Update: I take it back - that only worked once so it is probably unrelated...
kczx3 commentedon Jun 20, 2017
I can confirm that this still does not function when a .ico file is used for the icon. If I omit that, the balloon works and actually uses the application's icon, albeit a horrendously pixelated version of it. Using Windows 10.
GorvGoyl commentedon Nov 14, 2017
I'm on electron 1.8.1 and tray balloon doesnt work from async calls. tried setting the icon to png/ico but no balloon.
insideGen commentedon Nov 15, 2017
The following code works correctly: when a click event is detected, the balloon appears.
The following code works incorrectly: when an update event is detected,
log.info()works butappTray.displayBalloon()doesn't.If I add the
iconproperty inside the balloon object, it's work fine. But the icon needs to be a .png format, not .ico.damianobarbati commentedon May 31, 2018
I have a problem similar to @ralphstodomingo but I'm always using pngs.
If I call
tray.displayBalloon, it doesn't show up. Calling it again it shows up. And so on.redplane commentedon Jun 29, 2018
Same to me.
I added icon in
displayBalloonas @insideGen said and it works. Without icon, tray message cannot be displayed.codebytere commentedon Sep 23, 2018
Given that there exist workarounds for this, and that this isn't currently on our roadmap, i'm going to go ahead and label this a
wontfix. However, should someone determine a workable solution we would be very open to accepting a PR!