Manual TCF processing Android¶
Manual processing uses the setCustomConsent method. It takes a string in the INFOnline Consent String Notation, not the CMP's TC string.
When the consent must be set
- Call
setCustomConsentdirectly after initialising the session (initIOLSession), before the first event. Called before initialisation, it throws aNullPointerException. - When the session is terminated (
terminateSession), the IOLib resets the value. Set it again after every restart withstartSession(). - The IOLib discards events without valid consent before sending (see Effect on measurement).
For measurement in Austria (ÖWA), use the session type IOLSessionType.OEWA instead of IOLSessionType.SZM in all calls.
Example:
1 2 3 | |
Priority of automatic processing¶
The IOLib prioritises automatic processing over manual processing. If automatic processing produces a valid IO consent string, that string is transmitted and the manual one is ignored. As of version 2.5.0 you can force manual processing.
Checking¶
The getConsent method returns the IO consent string currently used for transmission.
1 2 | |
Whether the IOLib discards events for missing consent is only shown in debug mode.
Last update: October 23, 2026