Privacy and tracking controls
Это содержимое пока не доступно на вашем языке.
GDPR — forget a user
Section titled “GDPR — forget a user”The SDK exposes a GDPR event class that sends a “forget me” signal to the Affise backend: @objc public class GDPREvent : NativeEvent with static let EVENT_NAME = "GDPR" (AffiseAttributionLib/Classes/events/predefined/GDPREvent.swift:10-14).
Since GDPREvent subclasses NativeEvent, you can instantiate and send it like any other event:
GDPREvent(/* optional userData */) .send()See Events for parameter and send-control details.
Tracking enabled / disabled
Section titled “Tracking enabled / disabled”Two @objc public static toggles control whether the SDK may collect and forward data at all:
@objc public static func setTrackingEnabled(_ enabled: Bool)@objc public static func isTrackingEnabled() -> Bool— AffiseAttributionLib/Classes/Affise.swift:115-126.
When tracking is disabled, the SDK raises AffiseError.trackingDisabledException internally (AffiseAttributionLib/Classes/errors/AffiseError.swift:3).
Background tracking
Section titled “Background tracking”Independently toggle whether the SDK is allowed to perform network activity while the app is in the background:
@objc public static func setBackgroundTrackingEnabled(_ enabled: Bool)@objc public static func isBackgroundTrackingEnabled() -> Bool— AffiseAttributionLib/Classes/Affise.swift:97-108.
When disabled, the SDK raises AffiseError.backgroundTrackingDisabledException (AffiseAttributionLib/Classes/errors/AffiseError.swift:3).
Privacy manifests
Section titled “Privacy manifests”Declared required-reason APIs (from the manifest files; the README does not document them):
| Manifest | NSPrivacyAccessedAPITypes | Reason |
|---|---|---|
AffiseAttributionLib/PrivacyInfo.xcprivacy | NSPrivacyAccessedAPICategoryUserDefaults, NSPrivacyAccessedAPICategoryFileTimestamp | CA92.1, C617.1 |
AffiseModule/Hardware/PrivacyInfo.xcprivacy | NSPrivacyAccessedAPICategoryUserDefaults | CA92.1 |
AffiseInternal, AffiseSKAdNetwork, all other AffiseModule/* | — (empty array) | — |
None of the manifests declares NSPrivacyTracking, tracking domains or collected data types. Describe the data your app collects with the SDK (including IDFA via the Advertising module) in your own app’s privacy manifest and App Store privacy details.
Limiting device data
Section titled “Limiting device data”Since 1.7.18 device, OS, network and locale providers come from the Hardware module. Not installing AffiseModule/Hardware, or excluding it with setDisableModules([.Hardware]) (see Optional setup), stops their collection.
Related
Section titled “Related”- Offline mode — buffer events while the device is intentionally offline.