Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If user start capture before launching the app, it lets you continue to screen record even with ScreenShield.shared.protectFromScreenRecording() called #22

Open
kselvin opened this issue Oct 11, 2024 · 2 comments

Comments

@kselvin
Copy link

kselvin commented Oct 11, 2024

To Replicate

  1. Start screen recording
  2. Open the app that uses ScreenShield.shared.protectFromScreenRecording() from a completely closed state

because it is already screen recording and i guess therefore there isn't a state change you never get the "Screen recording now allowed" view to appear

@kselvin
Copy link
Author

kselvin commented Oct 11, 2024

Looking for a work around for this issue, will comment if i find any

@kselvin
Copy link
Author

kselvin commented Oct 11, 2024

i think if you add
if UIScreen.main.isCaptured {
self?.addBlurView()
}

before the rest of protectFromScreenRecording it would fix the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant