Disabling iOS SDK tracking
To comply with data privacy regulations, data tracking activity on the iOS SDK can be stopped entirely by setting the
enabled
property on the Braze instance tofalse
.
When set to false
, the Braze SDK ignores any call to the public API. The SDK also cancels all in-flight actions (network requests, event processing, etc.). If you wish to resume data collection, you can set the enabled
property to true
.
Additionally, you can use the method wipeData()
to fully clear locally stored SDK data on the device.
Unless a user uninstalls all apps from a vendor on a given device, the next time the Braze SDK runs after calling wipeData()
will result in our server re-identifying that user via their device identifier. In order to fully remove all user data, you should combine a call to wipeData()
with a request to delete data on the server via the Braze REST API.