Hey guys! I was looking to develop a macOS app using Electron that would eventually need to prevent the computer from going to sleep upon closing of the lid. I read through the documentation and the best thing I could find was the powerSaveBlocker but that doesn’t help me in this situation.
I assume that I’ll need to access some of the native macOS code, but I’m not sure where to start in order to do that.
Any help would be GREATLY appreciated, thank you so much!