I’m developing an electron app that contains a webview to wrap a web application. This app must be able to send a post request with some data to the application server each time the user shutdown or log off from windows. How electron or node.js can listen to those windows events? (A windows service is not an option in my case).
I’ve been trying this for a while now, but I could not accomplish and have been looking in everywhere without lucky.
Thanks in advance.