This module works in conjunction with the Connectivity module and the Consent Manager module to store any pending dispatches to disk while the device is offline or the user has not yet consented to tracking. When connectivity is restored, or if the user consents to tracking, the queue of dispatches will be sent. There is a default limit of 20 dispatches in the queue. When the limit is exceeded, the oldest dispatch will be cleared to make room for the most recent. Data is stored in UserDefaults.
In this article:
importstatements necessary other than
Usage of this module is required if using the Consent Manager or Connectivity modules. Otherwise, it is strongly recommended to aid with pre-init queueing of events by the TealiumCore module.
The following variable will be transmitted with each tracking call while the module is enabled:
|Variable Name||Description||Example Value|
|was_queued||Indicates that the dispatch was queued||true|
There are no public API methods for this module. Successes and failures may be monitored through the Delegate module.
let config = TealiumConfig(account: "tealiummobile", profile: "demo", environment: "dev", datasource: "test12", optionalData: nil) config.setMaxQueueSize(50)
Sets the maximum persistent queue size for dispatch storage. Default is 20 events.
let config = TealiumConfig(account: "tealiummobile", profile: "demo", environment: "dev", datasource: "test12", optionalData: nil) config.setMaxQueueSize(50) let queueSize: Int = config.getMaxQueueSize()
Gets the maxiumum queue size set on the TealiumConfig object.
No planned changes