Skip to content

Consent Handling

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.

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.

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.

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.