搜索插件、代码仓与 APP 分类

插件详情v2.1.1

gdpr_dialog

用于从用户获取个性化广告和非个性化广告的GDPR对话框的库。

AndroidiOS
近 30 天下载
80
喜欢数
47
Pub 分数
150

安装插件

flutter pub add gdpr_dialog

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

gdpr_dialog 包提供了一个简单且可自定义的对话框,以符合 GDPR 法规要求,允许用户在个性化广告和非个性化广告之间进行选择。它可无缝集成到 Android 和 iOS 的 Flutter 应用中,为获取用户对广告投放中数据使用的同意提供了一种简便方式。该库负责显示同意对话框,并支持初始同意请求以及未来的更新。其设计旨在帮助开发者满足隐私相关的法律要求,同时保持流畅的用户体验。

适合场景

  • 遵守GDPR法规
  • 获取用户同意以进行个性化广告
  • 在移动应用中显示同意对话框
  • 管理广告个性化设置
  • 支持注重隐私的应用程序设计

主要特点

  • 符合GDPR的同意对话框
  • 支持个性化和非个性化广告选项
  • 与 Flutter 应用轻松集成
  • 跨平台支持(Android 和 iOS)
  • 可自定义的用户界面元素

适合对象

  • 面向欧盟用户的移动应用开发者
  • 使用需要同意的广告网络的应用程序
  • 需要快速合规GDPR的开发人员
  • 初创公司正在构建注重隐私的应用程序
  • 带有广告变现的 Flutter 项目

使用建议

  • 需要正确处理同意状态
  • 可能需要额外的逻辑来集成广告网络
  • 不适用于非广告用途
  • 用户体验取决于定制化
  • 必须根据不断变化的隐私法律进行更新

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

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.

所属分类

源码仓库

使用此插件的项目

暂无相关数据。