Skip to content

Tray balloons not showing up on Win7 #2427

Closed

Description

@bendulum
    var Tray = require('tray');
    trayIcon = new Tray(iconPath);

    trayIcon.displayBalloon({
        icon: iconPath,
        title: 'fuuuu',
        content: 'more fuu'
    });

    trayIcon.on('balloon-show', function() {
        mainWindow.close();
    });

On Win7 this does not work although the icon shows up correctly in the tray. Attaching a context menu also worked. displayBalloon never does anything for me, the event also does not fire. iconPath is an absolute path to a png image. I see no error messages. I have Electron v0.30.2.

What am I missing here? I took the code from here https://github.com/atom/electron/blob/master/docs/api/tray.md

Activity

  1. bendulum commented on Aug 6, 2015

    @bendulum
    Author

    Same code is working now on a different machine (also Win7). Not sure what was at fault, and if this is an actual bug in electron...

  2. zcbenz commented on Aug 6, 2015

    @zcbenz
    Contributor

    Can you check your system notifications settings? I believe it is because the notification is disabled on your machine.

  3. bendulum commented on Aug 18, 2015

    @bendulum
    Author

    I can confirm this works now. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions