Skip to content
This repository has been archived by the owner on May 22, 2020. It is now read-only.

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

Open
MichaelMCoates opened this issue Apr 26, 2018 · 0 comments

Comments

@MichaelMCoates
Copy link
Contributor

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 (RUN-2863 [6.49.21.*] Start merging external process and external application APIs #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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant