Replies: 2 comments 9 replies
-
|
The heartbeats exist to catch cases where an app is unable to message the DA before its window is closed (or because the render thread crashed). However, I suspect that the browser maybe throttling the window or putting it to sleep when not focused, causing it to not respond to the heartbeat and the DA deciding its dead. This may benefit from some refinement, for example setting better timeouts or something more complex involving handling browser events from the PageLifeCycle API... If you're working with the toolbox/fdc3-for-web/fdc3-web-impl package the relevant code is at: It has baked in constants (which could be configurable. You should also console messages that you can look for in the DesktopAgent window's console that should identify when it thinks a window has died/stopped responding. You could also add some of the example code from the PageLifeCycle API docs to report when the page changes state and see how timing lines up: https://developer.chrome.com/docs/web-platform/page-lifecycle-api#how_to_observe_state_changes (i'd probably log the timestamp with the events as you'll need to compare across two different window consoles: DA & app). I'd be very interested in what you learn, as would @robmoffat and @SeeWhatsOn I imagine. |
Beta Was this translation helpful? Give feedback.
-
|
Interesting Edge and Chrome function differently. Edge on the left considers the app connected. Chrome on the right considers the app terminated. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
I have two forms communicating via FDC3. Everything works correctly when I pass an intent from form 1 to form 2. Form 2 responds to the intent as expected.
If I leave the browser alone for some time when I send an intent from form 1 form 2 does not respond but a new instance of form 2 is opened.
Form 2 is considered not responding to heartbeats and form 2 is eventually terminated.
Has anyone run into this before?
Any direction is appreciated
Beta Was this translation helpful? Give feedback.
All reactions