DPDP Workspace
Menu

React Native & Flutter

Thin wrappers on the native Android and iOS SDKs, so a cross-platform app asks and records just as a native one does.

What you get

In code

React Native
await DPDPWorkspaceConsent.configure("your-app-id");
await DPDPWorkspaceConsent.askIfNeeded();

if (await DPDPWorkspaceConsent.allowed("marketing-emails")) {
  // send the offer
}
Flutter
await DPDPWorkspaceConsent.configure('your-app-id');
await DPDPWorkspaceConsent.askIfNeeded();

if (await DPDPWorkspaceConsent.allowed('marketing-emails')) {
  // send the offer
}

See it working with your team

We set up the wrappers with your team and show the records they keep.