How Does Discord Share Screens on Mac Without Permission Prompt?

0
5
Asked By CuriousCoder42 On

Hey everyone! I'm curious if anyone has looked into how Discord manages to share screens on Mac without triggering the macOS screen recording permission prompt. From what I understand, even using the screen capture kit API typically forces that permission request, so I'm puzzled on how Discord bypasses this. Any insights would be greatly appreciated!

2 Answers

Answered By CodeSleuth88 On

Actually, it does trigger the permission; you might just have Discord set to be allowed for screen recording. Sometimes if the app is already permitted, it won't ask again.

CuriousCoder42 -

I checked, but I didn't find any indication in my system settings that Discord made a request for recording permission.

Answered By TechExplainer99 On

So, I did a little digging, and it turns out Discord uses an API called SCContentSharingPicker. I noticed that when I start a screen sharing session in Xcode, it doesn't ask for permission either, and it looks just like Discord's UI. I'm going to try to implement this myself to verify it. Thanks for the help, everyone!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.