Autentication
#
AuthenticationAuthentication verifies that the provided user id is correct and, therefore, it can initiate the chat.
The result of the authentication does not return any value beyond the same verification of success or failure of the operation.
From a successful response, we can consider that the user is authenticated and MeetingLawyers environment is ready to show the active conversations of the user.
note
The Async/Await version of the authenticate
method is available:
try await MeetingLawyersApp.authenticate(userId: "<#user_id#>")
#
LogoutFirst, you must initialize
SDK previously to call this method. If you want to call method authenticate
, please call it inside logout
clousure.
A logout
method delete all user cached data, including chat messages and professional list:
note
The Async/Await version of the logout
method is available:
try await MeetingLawyersApp.logout()
#
Next steps- Configure PUSH notifications: Firebase
- Unread Messages Count: Messages Count
- Show professionals list: Professionals List
- Customize UI: Customization