Hello
If your app isn't sandboxed you could try a trick that worked for me
NSUserDefaults *defs = [NSUserDefaults new];
NSDictionary *d = [defs persistentDomainForName:@"com.apple.WindowManager.plist"];
BOOL stageManagerActive = [[d objectForKey:@"GloballyEnabled"] boolValue];
Post
Replies
Boosts
Views
Activity
The problem is solved.
The service that started the Screen Recording app over the Login Screen used the NSTask API with a full path to the executable inside the app bundle.
The issue is gone after changing to NSWorkspace API