Flutter Guide
Install
The Flutter SDK can be installed via:
Setup
Import Resubscribe.
Call this, replacing the placeholder values with your own values.
The value of userid
MUST be unique. If you do not have a unique user id at the point you want to make this call, we recommend generating a random value prefixed with 'anonymous-' for every user
Configuration
aiType
apiKey
The secret for authenticating with Resubscribe.
userId
A unique identifier for the user.
slug
The short string identifying your organization.
onClose
A callback that is called whenever the experience is closed.
Customization
The text on the consent popup is already customized to the AI type you choose.
However, if you want to override these values, then you can pass in the consentOptions
to the ResubscribeSDK
.
Last updated