Storage
This article describes the different device-level properties captured when using the Braze Android SDK.
Device properties
By default, Braze will collect the following device-level properties to allow device, language, and time zone-based message personalization:
AD_TRACKING_ENABLED
ANDROID_VERSION
CARRIER
IS_BACKGROUND_RESTRICTED
LOCALE
MODEL
NOTIFICIATION_ENABLED
RESOLUTION
TIMEZONE
AD_TRACKING_ENABLED
and TIMEZONE
aren’t collected if they are null
or blank. GOOGLE_ADVERTISING_ID
is not collected automatically by the SDK and must be passed in via setGoogleAdvertisingId
.
You can disable or specify the properties you wish to collect by setting them using BrazeConfig.Builder.setDeviceObjectAllowlistEnabled()
and BrazeConfig.Builder.setDeviceObjectAllowlist()
.
The following example showcases allowlisting the device object to only include the Android OS version and device locale in the device object:
1
2
3
new BrazeConfig.Builder()
.setDeviceObjectAllowlistEnabled(true)
.setDeviceObjectAllowlist(EnumSet.of(DeviceKey.ANDROID_VERSION, DeviceKey.LOCALE));
By default, all fields are enabled. Note that without some properties, not all features will function properly. For instance, local time zone delivery will not function without the time zone.
Visit our SDK Data Collection article to read more about the automatically collected device properties.