Automatic data collection
By default, the Batch SDK will automatically collect some data related to the user's device, please visit the native sections for more info on Android and iOS.
Some of this data are disabled by default and can be toggled on/off according to the user consent:
- Device model
- Device brand (Android only)
- GeoIP
Use the following API to fine-tune what you want to enable:
Batch.instance.setAutomaticDataCollection({
"geoIP": true, // Enable GeoIP resolution on server side
"deviceBrand": true, // Enable automatic collection of the device brand information (Android only)
"deviceModel": true, // Enable automatic collection of the device model information
});
Note: This API can be used at any time in your application lifecycle and Batch will remember these values, even if your Application reboots.