Advanced
You can modify your SDK integration to disable the collection of the advertising ID or of advanced device information (e.g. carrier, network type, device brand and model).
Advertising ID
≥ 1.21 Automatic collection of the advertising ID has been removed and setUseIDFA
is now deprecated. You need to collect it from your side and pass it to Batch with:
- Swift
- Objective-C
let editor = BatchUser.editor()
editor.setAttributionIdentifier("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX") // Set to `nil` if you want to remove the identifier.
editor.save()
If you are using older version of the Batch SDK and you still want to allow Batch to fetch your Advertising ID.
Advanced Device Information
Advanced device information include information about the device itself, but nothing that directly identifies the user, such as (but not limited to):
- Device model
- Device brand
- Carrier name (Removed by Apple on iOS 16.4+)
- IDFV (Removed in 1.17.2)
While it is enabled by default, you can manage the advanced device information collection by using the following methods. Set the value to false if you do not want Batch to use advanced device information:
- Swift
- Objective-C
Batch.setUseAdvancedDeviceInformation(false)
Important note: Disabling advanced device information collection will impact Batch core features, especially if you are planning to use native attributes to segment your userbase (see more here). It won't disable the advertising id collection (IDFA).