Consent Management
Learn how to implement consent management for .NET MAUI.
Usage
Consent management is a recommended feature and is automatically included in the library. To manage consent, you must set a consent policy, and then track the user’s consent status and consent preferences.
To learn more, see Consent management.
Sample App
Use the .NET MAUI Consent Management sample app to familiarize yourself with our library, the tracking methods, and best practices:
Download .NET MAUI Consent Management Sample App
Enable
The consent management feature comes from the native SDKs embedded into the DLLs named Tealium.Platform.*.dlls
.
To enable consent management, set the consentPolicy
parameter when you initialize TealiumConfig
:
TealiumConfig config = new TealiumConfig(
//...
consentPolicy = ConsentPolicy.GDPR,
//...
);
Consent Status
As with the native SDKs for both Android and iOS, when consent management is enabled, new users are assumed to be in an unknown state. Tracking requests are queued up until the consent status has been opted-in or out, at which point events are sent or purged, respectively.
Use the following methods to manage a user’s consent:
SetConsentStatus()
GetConsentStatus()
SetConsentCategories()
GetConsentCategories()
SetConsentExpiryListener()
The Tealium.Common.dll
provides the following category and status enums to use:
This page was last updated: March 18, 2024