搜尋套件、儲存庫與 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

原始碼儲存庫

使用此套件的專案

暫無相關資料。