Methods to create user and set their mobile push token and other communication channels for sending notifications in ReactNative application.
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. iospsuh token is automatically set in user’s profile when this method is called.
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.We internally create an event called $user_login
. You can see this event on SuprSend workflows event list and you can configure a workflow on it.Parameters | 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.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
Remove User Channels
Set
$
or ss_
, as we have reserved these symbols for our internal events and property names.Set Once
user.set
, except it will not overwrite existing property values. This is useful for properties like First login dateUnset
Append
Remove
Increment