移动应用同意合规管理
managing-mobile-app-consent
移动场景专用同意管理指南,涵盖 iOS 的 Apple ATT 框架、Android 权限模型、应用内同意流程、SDK 同意向第三方库的传播,以及 IDFA/GAID 处理。兼顾平台特定要求与移动应用的 GDPR 和 ePrivacy 合规。
- License 许可
- Apache-2.0
- 最近更新
- 2026-03-17
- Stars
- ★ 338
- Forks
- 68
01 前言 Front Matter
- name
- managing-mobile-app-consent
- license
- Apache-2.0
- metadata
- { "tags": "mobile-consent, att-framework, android-permissions, idfa, sdk-consent", "author": "mukul975", "domain": "privacy", "version": "1.0", "subdomain": "consent-management" }
- description
- Guide for mobile-specific consent management covering Apple ATT framework for iOS, Android permission model, in-app consent flows, SDK consent propagation to third-party libraries, and IDFA/GAID handling. Addresses platform-specific requirements alongside GDPR and ePrivacy compliance for mobile applications.
02 资源文件 4
- 资产文件assets/template.md2.0 KB
- 参考文档references/standards.md2.6 KB
- 参考文档references/workflows.md3.6 KB
- 脚本scripts/process.py8.3 KB
03 SKILL.md 正文
Managing Mobile App Consent
Overview
Mobile applications present unique consent challenges: platform-level permission systems (Apple ATT, Android runtime permissions), advertising identifiers (IDFA/GAID), SDK-level data collection by third-party libraries, and limited screen real estate for consent interfaces. Compliance requires coordination between GDPR/ePrivacy requirements and platform-specific privacy frameworks.
Apple App Tracking Transparency (ATT) Framework
Requirements (iOS 14.5+, enforced April 2021)
Apple's ATT framework requires apps to request user permission before tracking across apps and websites owned by other companies. Key aspects:
- NSUserTrackingUsageDescription: Apps must include a purpose string in Info.plist explaining why tracking is needed.
- ATTrackingManager.requestTrackingAuthorization(): Must be called before accessing IDFA or performing tracking.
- IDFA Access: The Identifier for Advertisers (IDFA) returns all zeros unless the user grants ATT permission.
- Tracking Definition: Apple defines "tracking" as linking user/device data from your app with data from other companies' apps/websites for advertising or sharing with data brokers.
CloudVault SaaS Inc. ATT Implementation
Purpose String (NSUserTrackingUsageDescription): "CloudVault uses this identifier to measure the effectiveness of our advertising campaigns and provide relevant ads. You can change this in Settings at any time."
Pre-Permission Prompt (shown before ATT dialog): CloudVault SaaS Inc. displays a custom pre-permission screen explaining the value exchange before triggering the system ATT dialog:
"Help us improve CloudVault by allowing measurement of our advertising. This helps us understand which ads brought you here and improve our marketing spend. Your data is never sold. You can change this choice in iOS Settings at any time."
[Continue] → triggers ATTrackingManager.requestTrackingAuthorization()
ATT States and Handling
| ATT Status | Meaning | CloudVault Action |
|---|---|---|
| .notDetermined | User hasn't been asked yet | Show pre-permission screen, then request |
| .authorized | User allowed tracking | Enable IDFA access, attribution SDKs |
| .denied | User denied tracking | Disable IDFA, use SKAdNetwork for attribution |
| .restricted | Tracking restricted by parental controls/MDM | Do not request, use SKAdNetwork |
Android Permission Model and Privacy Changes
Android 13+ (API 33) Ad ID Changes
- AD_ID Permission: Apps must declare
com.google.android.gms.permission.AD_IDin AndroidManifest.xml to access Google Advertising ID (GAID). - Google Play Requirements: Apps targeting children must not access GAID.
- User Reset: Users can reset or delete their GAID in Android Settings.
Android Privacy Sandbox (In Development)
Google's Privacy Sandbox for Android introduces:
- Topics API: Returns coarse-grained interest topics (replaces FLoC for mobile)
- Attribution Reporting API: Privacy-preserving ad attribution (similar to SKAdNetwork)
- FLEDGE: On-device ad auctions without cross-app tracking
CloudVault SaaS Inc. Android Implementation
<!-- AndroidManifest.xml -->
<uses-permission android:name="com.google.android.gms.permission.AD_ID"/>
GAID is only accessed if the user has granted consent for advertising purposes through the in-app consent flow. If consent is not granted, GAID is not read.
In-App Consent Flow Design
First Launch Consent
App First Launch
│
├─► Step 1: Welcome screen with privacy summary
│ "Welcome to CloudVault. Before you get started,
│ let's set up your privacy preferences."
│ [Set Up Privacy]
│
├─► Step 2: Layered consent screen
│ ├─ Purpose 1: Analytics [Toggle, OFF by default]
│ │ "Help us improve CloudVault by sharing anonymous usage data"
│ │ [Learn More] → detailed Art. 13 information
│ │
│ ├─ Purpose 2: Advertising Measurement [Toggle, OFF by default]
│ │ "Measure which ads brought you to CloudVault"
│ │ [Learn More] → detailed information + ATT context
│ │
│ ├─ Purpose 3: Crash Reporting [Toggle, OFF by default]
│ │ "Share crash reports to help us fix bugs faster"
│ │ [Learn More] → data types, retention
│ │
│ └─ "You can change these at any time in Settings > Privacy"
│
├─► Step 3: Record consent decisions
│ ├─ Per-purpose consent records (standard fields)
│ ├─ Platform: iOS/Android
│ ├─ OS version, app version, device model
│ └─ SDK consent propagation (see below)
│
├─► Step 4: Platform-specific follow-up
│ ├─ iOS: If advertising consent granted → trigger ATT dialog
│ └─ Android: If advertising consent granted → access GAID
│
└─► Step 5: Proceed to app
└─ SDKs initialized based on consent state
SDK Consent Propagation
Third-party SDKs in the CloudVault mobile app must respect user consent:
| SDK | Purpose | Data Collected | Consent Required | Propagation Method |
|---|---|---|---|---|
| Firebase Analytics | Usage analytics | Events, screen views, device info | pur_analytics_001 | FirebaseAnalytics.setAnalyticsCollectionEnabled(granted) |
| Crashlytics | Crash reporting | Stack traces, device state | pur_crash_003 | FirebaseCrashlytics.setCrashlyticsCollectionEnabled(granted) |
| AppsFlyer | Attribution | IDFA/GAID, install referrer | pur_advertising_002 | AppsFlyerLib.start() only if consented |
| Google AdMob | Advertising | IDFA/GAID, device info | pur_advertising_002 | MobileAds.setRequestConfiguration() with consent |
SDK Initialization Pattern
SDKs must not be initialized before consent is obtained. CloudVault SaaS Inc. implements a "consent gate":
- App launches → load only essential SDKs (no tracking)
- Consent flow completes → read consent state
- For each SDK: initialize only if corresponding purpose is consented
- If consent is later withdrawn: disable SDK data collection (where SDK API supports it) or defer to next app restart
IDFA and GAID Handling
| Identifier | Platform | When to Access | When NOT to Access |
|---|---|---|---|
| IDFA | iOS | ATT status = .authorized AND pur_advertising_002 consented | ATT denied/restricted OR advertising consent not granted |
| GAID | Android | pur_advertising_002 consented AND AD_ID permission declared | Advertising consent not granted OR app targets children |
Key Regulatory References
- GDPR Article 5(3) via ePrivacy Directive — Consent for device storage access
- GDPR Article 7 — Conditions for consent (apply to in-app consent)
- Apple ATT Framework Documentation — App Tracking Transparency requirements
- Apple App Store Review Guideline 5.1.2 — Data Use and Sharing
- Google Play Developer Policy — Advertising ID and User Data
- CNIL Mobile Privacy Guidelines (2023) — Mobile-specific consent requirements
- EDPB Guidelines 05/2020 — Consent in mobile context
04 同仓库更多 Skills
职场邮件监控合规
workplace-email-privacy
依据 Barbulescu 诉罗马尼亚案(欧洲人权法院大法庭)、EDPB 指引及各国劳动法,实施工作场所电子邮件与互联网监控合规。涵盖可接受使用政策、合理的隐私期待、比例原则测试以及内容监控与元数据监控的区别。关键词:邮件监控、Barbulescu、职场隐私、互联网监控、可接受使用政策、ECHR、比例原则。
举报人数据保护合规
whistleblower-data
依据欧盟指令 2019/1937 和 GDPR,为举报(吹哨)系统实施数据保护合规。涵盖匿名举报渠道、举报人与被指控人的身份保护、保存期限限制、访问限制以及反报复措施。涉及成员国转化立法与数据保护机构(DPA)指引。关键词:举报人、指令 2019/1937、匿名举报、身份保护、报复、保存期限、举报渠道。
供应商终止数据返还与删除
vendor-termination-data
依据 GDPR 第 28(3)(g) 条的供应商终止数据返还与删除流程。涵盖数据提取格式、删除证明要求、过渡规划、残留数据处理以及终止后核验。
供应商隐私风险评分
vendor-risk-scoring
面向数据处理者管理的供应商隐私风险分级方法论。涵盖数据量、敏感度、传输地点、认证情况、泄露历史和控制成熟度等评分要素,通过加权风险计算进行风险分级与等级划分。
供应商隐私尽职调查
vendor-privacy-due-diligence
依据 GDPR 第 28(1) 条的签约前供应商隐私尽职调查。涵盖风险问卷、技术控制评估、认证审查、数据流分析以及针对处理者合作的书面充分性决策。
供应商隐私合规审计
vendor-privacy-audit
依据 GDPR 第 28(3)(h) 条进行现场和远程供应商审计程序。涵盖审计计划、证据收集方法、问题发现分类、整改跟踪以及用于处理者合规验证的审计报告生成。