But still I am not able to configure events on this first electron window(screen launched when we start NG Desktop client), events such as ‘on-close’, ‘before-quit’, etc are not triggering.
We need to trigger an event when first electron window is closed to make some closing transactions.
did you try using the idle service plugin for this?
This might be doing what you want, only for the browser window, not specifically the electron window.