iOS 行为
复制一个安装步骤和本插件的完整Markdown指南的设置提示。
How iOS protection works
iOS保护机制On iOS, the plugin adds a temporary native overlay while the app resigns active. That overlay is what appears in the app switcher snapshot instead of your real interface.
这意味着插件保护了:
- app switcher预览
- iOS在应用程序切换到后台时保存的快照
What it does not do
iOS保护机制的限制iOS does not offer the same screenshot blocking API as Android. The plugin cannot prevent a user from taking a screenshot while actively using the app.
If you need stronger policy controls on iOS, combine this plugin with app-level choices such as:
- 结合此插件和应用级别的选择(例如:
- 在呈现敏感UI之前进行遮罩处理
- 在应用后台时清除临时值
Setup
设置安装后不需要额外的 iOS 配置 cap sync.
示例流程
在应用后台时清除临时值import { PrivacyScreen } from '@capgo/capacitor-privacy-screen';
await PrivacyScreen.enable();对于大多数应用来说,即使显式调用也是可选的,因为插件默认启用
继续从 iOS 行为
如果您正在使用iOS 行为 在应用后台时清除临时值 为安全和合规性进行规划,连接它 使用@capgo/capacitor-隐私屏幕 使用@capgo/capacitor-隐私屏幕中的本机功能 加密 加密的实现细节 合规 合规的实现细节 Capgo 安全扫描器 Capgo 安全扫描器的产品工作流程 Capgo 安全 Capgo 安全的产品工作流程