Create, update, & manage user profiles and communication channels using Flutter SDK methods.
distinct_id
. It’s best to map the same identifier in your DB with distinct_id
in SuprSend. Do not use identifiers that can be changed like email or phone number. You can view synced users by searching distinct_id
on Users page.
Create / Identify a new user
suprsend.identify()
method. Call this method as soon as you know the identity of user, that is after login authentication. If you don’t call this method, user will be identified using distinct_id (uuid) that SDK generates internally.When you call this method, we internally create an event called $user_login
. You can use this event to trigger workflow on user login.Parameter | Type | Description |
---|---|---|
distinct_id | int, bigint, string, UUID | mandatory Unique identifier for a user across devices or between multiple logins. |
Call reset to clear user data on log out
suprsend.reset()
method to clear data attributed to a user. This allows you to handle multiple user logins on a single device and keep their data isolated from each other.When you call this method, we internally create an event called $user_logout. You can see this event on SuprSend workflows event list and you can configure a workflow on it.suprsend.identify()
call. All you have to do is to integrate push notification service in your application to start sending mobile push notification. To set other communication channels, use below methods.
Add User Channels
Make sure you are sending the country code when you are calling communication methods for SMS and Whatsapp.
Remove User Channels
Set
$
or ss_
, as this is reserved for our internal events and property names.Parameters | Type | Description |
---|---|---|
key | string | Mandatory
This is property key that will be attached to user.
Should not start with $ or ss_ |
value | any | Optional This will be value that will be attached to key property. |
JSONObject | object | Optional This is used in case of setting multiple user properties. |
Unset
Append
Remove
Set Once
user.set
, except it will not overwrite existing property values. This is useful for properties like First login dateIncrement