Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
@capacitor-community/privacy-screen
Advanced tools
Capacitor plugin that protects your app from displaying a screenshot in Recents screen/App Switcher.
@capacitor-community/privacy-screen
Capacitor Privacy Screen Plugin
⚡️ Capacitor plugin that protects your app from displaying a screenshot in Recents screen/App Switcher.
On Android, this plugin sets the FLAG_SECURE flag to treat the content of the window as secure, preventing it from appearing in screenshots or from being viewed on non-secure displays.
On iOS, this plugin hides the webview window when the app is no longer active and loses focus (UIApplicationWillResignActiveNotification) so that a gray screen is shown instead.
Maintainer | GitHub | Social |
---|---|---|
Robin Genz | robingenz | @robin_genz |
npm install @capacitor-community/privacy-screen
npx cap sync
These configuration values are available:
Prop | Type | Description | Default |
---|---|---|---|
enable | boolean | Configure whether the plugin should be enabled from startup. Only available for Android and iOS. | true |
In capacitor.config.json
:
{
"plugins": {
"PrivacyScreen": {
"enable": true
}
}
}
In capacitor.config.ts
:
/// <reference types="@capacitor/privacy-screen" />
import { CapacitorConfig } from '@capacitor/cli';
const config: CapacitorConfig = {
plugins: {
PrivacyScreen: {
enable: true,
},
},
};
export default config;
A working example can be found here: robingenz/capacitor-plugin-demo
The plugin only needs to be installed. The protection is enabled by default.
However, you have the option to enable/disable the protection:
import { PrivacyScreen } from '@capacitor-community/privacy-screen';
const enable = async () => {
await PrivacyScreen.enable();
};
const disable = async () => {
await PrivacyScreen.disable();
};
enable() => Promise<void>
Enables the privacy screen protection.
Only available for Android and iOS.
Since: 1.1.0
disable() => Promise<void>
Disables the privacy screen protection.
Only available for Android and iOS.
Since: 1.1.0
See CHANGELOG.md.
See LICENSE.
FAQs
Capacitor plugin that protects your app from displaying a screenshot in Recents screen/App Switcher.
We found that @capacitor-community/privacy-screen demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 42 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.