gdpr_dialog
Biblioteca para uso do diálogo GDPR com o usuário para anúncios personalizados e não personalizados.
Diálogo de GDPR para Flutter
{"sdk":"flutter"}{"sdk":"flutter"}Texto original em inglês. Visite o GitHub para a versão atual.
"showDialog()" calling: gets native request to android/ios Consent Form dialog and sets result as boolean:
Bool variable "isForTest" for testing library, set true to activate setDebugGeography. (works only for Android) In release build set false or delete this argument!
"testDeviceId" you can find in logs.
If user already chose one of Consent Form variants and call it a second time:
GdprDialog.instance.showDialog(isForTest: true, testDeviceId: 'xxxxxxxxxxxxxxx')
.then((onValue) {
print('result === $onValue');
});
In the release build, you only does not need a parameters.
GdprDialog.instance.getConsentStatus();
It will return string of consent status:
API, which depends on Android v2 Embedding, can not show you the real status of personalized ad.