User Messaging Platform: Reset consent

1k views Asked by At

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?

1

There are 1 answers

1
niqueco On

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.