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

插件详情v1.0.2

gdpr_dialog_flutter

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

AndroidiOS
近 30 天下载
39
喜欢数
5
Pub 分数
150

安装插件

flutter pub add gdpr_dialog_flutter

插件介绍

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

gdpr_dialog_flutter 包提供了一个简单且可自定义的对话框,以符合 GDPR 法规要求,允许用户在个性化广告和非个性化广告之间进行选择。它可无缝集成到 Android 和 iOS 的 Flutter 应用中,为获取用户对数据处理的同意提供了简便方式。该库负责显示同意对话框,并支持两种广告个性化选项,确保在需要遵守 GDPR 的地区实现法律合规。该库轻量且易于实现,配置需求极少。

适合场景

  • 遵守GDPR法规
  • 获取用户同意以进行个性化广告
  • 在移动应用中显示同意对话框
  • 管理广告个性化设置
  • 确保在欧盟市场的法律合规性

主要特点

  • 符合GDPR的同意对话框
  • 支持个性化和非个性化广告
  • 与 Flutter 的简单集成
  • 适用于 Android 和 iOS
  • 可自定义的用户界面元素

适合对象

  • 面向欧盟用户的Flutter开发者
  • 使用个性化广告的应用
  • 需要遵守GDPR的项目
  • 带有广告网络的移动应用
  • 寻求快速同意实现的开发者

使用建议

  • 需要手动处理同意状态的持久化
  • 超出基本用户界面的定制功能有限
  • 依赖外部广告网络集成
  • 无内置的同意跟踪分析功能
  • 不适用于非广告用途

原始 README

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

GDPR dialog Flutter

"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
GdprDialogFlutter.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
GdprDialogFlutter.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

所属分类

依赖

依赖清单 1 项

  • plugin_platform_interface^2.0.2

源码仓库

使用此插件的项目

暂无相关数据。