I want to send an api request when the user closes the app. I have managed to send an api request on that but on shutdown the request is not sent.
Is there any way in electron that we can prevent system shutdown like in the image.
Prevent system shutdown
There is “shutdown” event in electron but it works on mac and linux only.
New contributor
Abhishek Yadav is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.