User Verification for Android
Pass user verification information to Salesforce to ensure that your customers get the best experience with an agent.
This feature requires version 1.2.0 or later of the Messaging for In-App SDK.
This article applies to the following implementations:
Before you can use the SDK for user verification, you must upload the appropriate keys to Salesforce. To learn about and set up User Verification, see User Verification in Salesforce Help.
Currently, this feature supports JWT tokens. Also, we don’t support chatting with verified users alongside unverified users. Your implementation must be designed for either verified users or unverified users.
- When creating the
CoreConfigurationobject, add the optional
isUserVerificationRequiredargument and set it to
true. See the
- Implement the
UserVerificationProviderinterface. This provider contains the
userVerificationChallengemethod, which the SDK calls when it requires user verification information.
- Add your provider to the SDK using the
CoreClient.registerUserVerificationProviderproperty. See the
- Revoke the token when the user logs out by calling
CoreClient.revokeToken. See the
After you register your provider, the SDK automatically calls the
userVerificationChallenge method when it needs a valid token.