Skip to content

Flutter SDK

Overview

The Secure Privacy Consent Management SDK provides developers with an easy way to manage user consent within their applications. By integrating this SDK, you can ensure compliance with privacy regulations while offering users control over their data preferences.

Getting Started

Installation

To begin using the Secure Privacy SDK, include the Flutter SDK in your project.

Initialization

To initialize the SDK, call the following method with your authentication key:

SPMobileConsent.init(authKey);

This will set up the SDK and enable access to its features.

You can check the current consent status by calling:

SPMobileConsent.instance.getConsentStatus();

The SDK supports three consent states:

  • Collected: Consent has already been obtained.
  • Pending: Consent needs to be collected.
  • UpdateRequired: Consent needs to be re-collected.

To launch the consent collection popup, use the following method:

FirstLayer.show();

This popup will inform users about the SDK and provide them with options to agree to all or deny consent.

Flutter app consent banner.

Customization Options

Users have the option to customize their preferences. When they click the customization button, they will be taken to the Preferences screen, where they can:

  • View a list of frameworks and their services.
  • Enable or disable consent for specific services.

Essential Services

Developers can mark certain services as essential. Users will not be given the option to deny these services, ensuring compliance with necessary app functionalities.

The Preferences screen also includes tabs showcasing content related to the app’s privacy and cookie policy, providing users with important information regarding their data.

Data Requests

Users can request their data by filling out a form in the “Request Data” section. This feature enables users to easily manage their data requests in compliance with privacy regulations.