User Onboarding
To track a user's onboarding status upon app launch, the key isUserOnboardingDone
stores a boolean value indicating whether onboarding is complete (true) or incomplete (false).
Steps to get isUserOnboardingDone
key
- Use the
getIsUserOnboardingDone()
function provided by thelmFeedClient
object created earlier.
try {
let isUserOnboardingDone = await Client.myClient?.getIsUserOnboardingDone();
if (isUserSet?.getData() == null) return false;
return isUserSet.getData();
} catch (error) {
return false;
}
Steps to set isUserOnboardingDone
key
- Use the
setIsUserOnboardingDone()
function provided by thelmFeedClient
object created earlier. - Call the above function with a boolean parameter i.e
true
orfalse
. - Use the response as per your requirement.
try {
const response = await Client.myClient?.setIsUserOnboardingDone(<"BOOLEAN_ONBOARDING_STATUS">);
if (response?.getData() == true) return true;
return false;
} catch (error) {
return false;
}