You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,19 @@
1
+
## [Unreleased]
2
+
3
+
### Bug Fixes
4
+
5
+
***android:** more reliable handling of the privacy screen in different navigation modes.
6
+
7
+
### Deprecated
8
+
9
+
***android:**`preventScreenshots` config option is now deprecated. FLAG_SECURE is automatically applied when privacy screen is enabled, providing screenshot prevention and app switcher protection. This option will be removed in a future major version. To control screenshot prevention per screen, enable/disable the plugin as needed on specific screens.
10
+
11
+
### Documentation
12
+
13
+
***android:** Added comprehensive documentation for FLAG_SECURE behavior, including screenshot prevention, app switcher protection, and non-secure display restrictions
14
+
***android:** Clarified live view protection: when FLAG_SECURE doesn't fully protect content (e.g., gesture navigation or live views that can persist for minutes), a temporary privacy screen overlay is displayed
Copy file name to clipboardExpand all lines: README.md
+65-3Lines changed: 65 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,9 +14,71 @@ npx cap sync
14
14
### Platform Notes
15
15
16
16
#### Android
17
-
The privacy screen behavior on Android varies depending on the navigation method used:
18
-
- When using gesture navigation or the recent apps button, the privacy screen will display as configured
19
-
- When using the home button to exit the app, the system must fall back to using [`FLAG_SECURE`](https://developer.android.com/reference/android/view/WindowManager.LayoutParams#FLAG_SECURE) as it's the only way to prevent content visibility in this scenario
17
+
18
+
##### FLAG_SECURE Behavior
19
+
When the privacy screen is enabled, the plugin automatically applies Android's [`FLAG_SECURE`](https://developer.android.com/reference/android/view/WindowManager.LayoutParams#FLAG_SECURE) flag to the window. This provides comprehensive content protection:
20
+
21
+
-**Screenshot Prevention**: Prevents users from taking screenshots or screen recordings of your app
22
+
-**App Switcher/Recent Apps**: When the app appears in the recent apps view, FLAG_SECURE causes the system to show either a black screen or the last frame captured before FLAG_SECURE was applied (typically blank)
23
+
-**Non-Secure Display Protection**: Prevents the window content from appearing on non-secure displays such as TVs, projectors, or screen mirroring to untrusted devices
24
+
-**Live View Protection**: In cases where FLAG_SECURE doesn't fully protect content (such as with gesture navigation or live view fragments that can persist for minutes), the plugin displays a temporary privacy screen overlay. This overlay can be configured via `dimBackground` (shows a dim overlay) or shows the splash screen by default.
25
+
26
+
##### Navigation Method Differences
27
+
The privacy screen behavior varies depending on how the user navigates away from the app:
28
+
-**Recent Apps Button/Gesture**: The privacy dialog displays as configured when viewing the app switcher
29
+
-**Home Button**: FLAG_SECURE ensures content protection in the app switcher snapshot
30
+
-**Activity Background Events**: Controlled separately via `privacyModeOnActivityHidden` for scenarios like biometric prompts
0 commit comments