Detecting iOS screen sharing

Hello,

Is there any way to detect if the iOS screen is currently being shared via FaceTime or iPhone Mirroring?

Our application relies on this information to help ensure that users are not accessing it from one location while physically being in another.

Could you detect the green dot that's close to the notch or in Dynamic Island ?

But maybe the simplest is to check if camera is active: https://stackoverflow.com/questions/16460705/check-which-camera-is-currently-in-use-in-ios-application

Detecting iOS screen sharing
 
 
Q