I'm creating a desktop application using electron. I need camera, microphone and screen recording permission so I'm using systemPreferences
Here is the full function we use to request media access. It is called when the Permission Request Handler is invoked with the media permission. The app does not reach the catch Block, so the error is not logged. We tested this behavior on 3 different machines. enter image description here
But Getting undefined for system preference mediaType as a 'camera', 'microphone' and 'screen'
I don't know what am I missing. any advice will very appreciate