GDPR-Admob-Android icon indicating copy to clipboard operation
GDPR-Admob-Android copied to clipboard

how to force show consent form ?

Open schnaps1981 opened this issue 5 years ago • 2 comments

how to force show consent form ?

schnaps1981 avatar Sep 18 '19 10:09 schnaps1981

You mean you wanna force showing the consent form for the users outside the EEA? If you want to debug it forgot to add the option of enabling the debug mode on the Builder class

So just use initialize the class without the Builder class, If you set the last parameter to true it will force the consent dialog to show you can check the code to know how it works.

Screenshot_2

healthybinary avatar Sep 18 '19 11:09 healthybinary

it is not working....

i make a new project and insert into this code

        ConsentSDK consentSDK = new ConsentSDK(this, publisherId, privacyUrl, true);
        consentSDK.checkConsent(new ConsentSDK.ConsentCallback() {
            @Override
            public void onResult(boolean b) {
                Log.d("TAG", b + "  :  " );
            }
        });

b = false

Consent form not showing :( in logcat i see

 D/ID_LOG: Unknown Consent
 D/ID_LOG: User location within EEA: false

schnaps1981 avatar Sep 18 '19 11:09 schnaps1981