Closed hashemalkayal closed 1 year ago
I cannot reproduce the issue using this demo app on my iPhone 13 with iOS 16.5.1. Please provide a Minimal, Reproducible Example using this template in a public GitHub repository so I can debug the issue.
@robingenz
i created new project and i faced the same issue as well
github : https://github.com/hashemalkayal/demo-app-capacitor
Just to make sure I didn't misunderstand you: The screenshot shows your app screen but you expect a black screen, right?
@robingenz
Yes, sure. That's what I mean
Sorry, i still can't reproduce your issue, see:
The screenshot is black.
Edit: Thats your app.But with the plugin activated, you only see black in the recording.
@robingenz
just when you call -- Privacy Screen.enable();
see black screen no extra configurations on ios platform ?
Yeah, I used your example app.
My iPhone 14 with iOS version 16.2
on app switcher mode my screen is replaced with gray color (correct behvior)
but when i try take screenshot i can see my app screen (incorrect behavior)
I understand that but I can't reproduce the problem and thus can't debug it. You are welcome to debug it yourself and create a PR with a fix.
Plugin version: @capacitor-community/privacy-screen: "4.1.1" @capacitor/core: "5.0.5",
Platform(s): IOS
Current behavior: when i try take screen shot from ios device is show my app screen instead black screen
Expected behavior: black screen instead my app screen
Steps to reproduce:
Related code:
const preventScreenshot = async (): void => { await PrivacyScreen.enable(); };
if (platform !== 'web') preventScreenshot();
Other information:
Capacitor doctor: