Giter Club home page Giter Club logo

gdpr_dialog_flutter's Introduction

GDPR dialog

"showDialog()" calling: gets native request to android/ios Consent Form dialog and sets result as boolean:

  • true = requested Consent Form loaded (but may not be shown);
  • false = error with Consent Form loading.

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:

  • in iOS form will be shown and the user can change their consent option;
  • in Android form will not be shown. To reset the choice user need to reinstall the app.

Usage

GdprDialog.instance.showDialog(isForTest: true, testDeviceId: 'xxxxxxxxxxxxxxx')
                      .then((onValue) {
                    print('result === $onValue');
                  });

In the release build, you only does not need a parameters.

Method getConsentStatus() that return consent status

Usage

GdprDialog.instance.getConsentStatus();

It will return string of consent status:

  • OBTAINED
  • REQUIRED
  • NOT_REQUIRED
  • UNKNOWN

Statuses explaining

API, which depends on Android v2 Embedding, can not show you the real status of personalized ad.

  • OBTAINED status means, that user already chose one of the variants ('Consent' or 'Do not consent');
  • REQUIRED status means, that form should be shown by user, because his location is at EEA or UK;
  • NOT_REQUIRED status means, that form would not be shown by user, because his location is not at EEA or UK;
  • UNKNOWN status means, that there is no information about user location.

gdpr_dialog_flutter's People

Contributors

antonmolchan avatar muknta avatar sarafinmahtab avatar noelrecords avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.