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
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.
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!
I checked, but I didn't find any indication in my system settings that Discord made a request for recording permission.