There are few common methods that can be used from UI SDK.
Launch Channelize one to one Conversation
You can open conversation screen between the logged-in user and another user:
User user = new User(); user.setDisplayName(displayName); // Display name of the user on which you've clicked user.setId(userId); // User id of the user (other user) user.setProfileColor(); user.setProfileImageUrl(profileImage); // User's profile image url. ConversationUtils.openOneToOneConversation(context, user);
Process Push notification
You can show the push notifications received for the message:
ChannelizeUI channelizeUI = ChannelizeUI.getInstance(); channelizeUI.processPushNotification(remoteMessage); // RemoteMessage received in Firebase Service.
Clear Push notification
You can clear the push notifications for Channelize:
ChannelizeUI channelizeUI = ChannelizeUI.getInstance(); channelizeUI.clearPushNotification();
Update Push notification
The push notification status is updated when a user reads the messages from the conversation screen.
ChannelizeUI channelizeUI = ChannelizeUI.getInstance(); channelizeUI.onConversationOpen(context, conversationId); // ConversationId of the conversation on which user has clicked.