Electron App need to grant access


I created an Electron APP in windows with gkm packages and all functions are working. In macOS, it needed to allow the app from privacy settings so that the function of the app is working. Is there another way to count the per mouse click and keyboard press of electron app in macOS that not needed to be manually grant access or allowed in privacy setting?


It sounds like the security feature was specifically designed to prevent people from doing what you’re trying to do without the user giving them permission, because that’s what keyloggers do.


@DamnedScholar oh i see, right now I used the Iohook module but still the same like gkm. Is there possible way to count all keypress and mouse click in macOS?


Not something that I would know anything about.