Merthan Erdem
Merthan Erdem

Reputation: 6058

User Messaging Platform: Reset consent

As I read, GDPR requires consent to be revoked.

I only found the ConsentInformation.reset() method, but that one specifically mentions that it is only for debug purposes.

https://developers.google.com/admob/ump/android/api/reference/com/google/android/ump/ConsentInformation#public-abstract-void-reset

What is the correct way to withdraw consent so the Consent dialog gets shown again?

Upvotes: 5

Views: 1135

Answers (1)

niqueco
niqueco

Reputation: 2408

Every time you call form.show(act) a dialog will be shown, even if the user already gave consent information. That's why you have to check if consentInformation.consentStatus has a value of ConsentInformation.ConsentStatus.REQUIRED before.

This all means that to provide the user a way of changing consent you just need to call show(act) without performing the check above.

Upvotes: -1

Related Questions