Whenever a new user opens your app after you have integrated Contlo SDK, we will create an anonymous profile on Contlo with a Mobile Push Subscription that will be in a pending state.

A user profile is automatically created for every user who launches your mobile application, whether the user is logged in or not.

Whenever a new user opens your app after you have integrated Contlo SDK, we will create an anonymous profile on Contlo with a Mobile Push Subscription that will be in a pending state.

You can refer to the Push Configuration page to understand Push Permission and sending consent to Contlo.

Anonymous Users

Unidentified users are anonymous users whose profiles don't contain an email or mobile number. These profiles are created using their unique FCM token.

Identified Users

Identified users are those whose email or phone number is known.

Save user profile

To set the profile details of identified users, you can call the following functions after integrating Contlo's SDK:

import { ContloAPI } from 'react-native-contlo'
.
.
.

// Set email, phone one of the fields is mandatory for sending a request
ContloAPI.set.userEmail('[email protected]')
ContloAPI.set.userPhone('+912223334444')

// Set methods (optional)
ContloAPI.set.userFirstName('John')
ContloAPI.set.userLastName('Doe')
ContloAPI.set.userCity('bangalore')
ContloAPI.set.userProvince('')
ContloAPI.set.userZip('560010')
ContloAPI.set.userCountry('india')

// Get methods 
ContloAPI.get.userEmail()
ContloAPI.get.userPhone()
ContloAPI.get.userFirstName()
ContloAPI.get.userLastName()
ContloAPI.get.userCity()
ContloAPI.get.userProvince()
ContloAPI.get.userZip()
ContloAPI.get.userCountry()

// Send methods (async methods) - return type promise
// Custom Properties contain any other custom properties of User.If nothing has // to be sent, keep customProperties as exmpty object
ContloAPI.send.profile({customProperties: customProperties})