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

bug: Privacy screen is below in app browser #111

Open
rodrigogr96 opened this issue Nov 14, 2024 · 1 comment
Open

bug: Privacy screen is below in app browser #111

rodrigogr96 opened this issue Nov 14, 2024 · 1 comment

Comments

@rodrigogr96
Copy link

Plugin version:
4.2.3

Platform(s):
ios

Current behavior:
The problem I have is that the black screen is below the inappbrowser when I enable privacyscreen, so the only thing that is hidden is the statusbar, but the webview is still visible

Expected behavior:
What is expected is that the black screen is above everything, especially the webview (in app browser)

Steps to reproduce:
install @ionic-native/in-app-browser and cordova-plugin-inappbrowser
Then on any screen of the application open an in appbrowser blank
example:
InAppBrowser.create("url", "_blank")
but have PrivacyScreen.enable() and take a screenshot, the webview is above the black screen

Capacitor doctor:
💊 Capacitor Doctor 💊

Latest Dependencies:

@capacitor/cli: 6.1.2
@capacitor/core: 6.1.2
@capacitor/android: 6.1.2
@capacitor/ios: 6.1.2

Installed Dependencies:

@capacitor/cli: 5.7.8
@capacitor/core: 5.7.8
@capacitor/android: 5.7.8
@capacitor/ios: 5.7.8

[success] iOS looking great! 👌
[success] Android looking great! 👌

@rodrigogr96 rodrigogr96 changed the title bug: Privacy screen is below app browser bug: Privacy screen is below in app browser Nov 14, 2024
@TiBz0u
Copy link

TiBz0u commented Nov 15, 2024

Hi @rodrigogr96,
On iOS, there is no possibility to prevent screenshot at system level (at opposite of Android).

To achieve a black screenshot, this plugin adds a protected input view in the way Apple automatically manage this for us (=> black screen).
By opening a Browser on top of the Capacitor main view, you didn't benefit anymore of this "trick".

We need a different implementation to achieve it globally.

Kr

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

No branches or pull requests

2 participants