core icon indicating copy to clipboard operation
core copied to clipboard

When an application is hidden using the tray icon, core notifications take 5 seconds longer to show

Open MichaelMCoates opened this issue 7 years ago • 0 comments

Issue: When an application is hidden using the tray icon, core notifications take 5 seconds longer to show than they normally do.

How to reproduce:

  • Create an application (#1) with a tray icon.
  • Put an element on the DOM, and attach an click listener to it that hides the window.
  • Attach the same listener to the tray icon on click.
  • Create a separate application that sends an InterAppBus message to Application 1.
  • When Application 1 receives that message, have it create an OpenFin Notification.
  • Compare the time it takes to show the notification.

When you hide the window using the DOM Element click handler, notifications show up normally. However, if you hide the window using the tray icon, it takes significantly longer to show.

In verbose logs, take a look at the time elapsed between the create-notification and show-window actions. There is a 5 second delay between the events if you hide using the tray icon. If you hide using the DOM element, the difference is less than a second.

MichaelMCoates avatar Apr 26 '18 19:04 MichaelMCoates