Chat
If needed, your users can chat with you to provide you more details about their reported bugs, crashes or feedback. You will be able to fix issues faster and make your customers happier.
Enable
Once your user is registered with Shake, the chat feature is enabled automatically. Each ticket they send you will be a separate conversation.
This feature is tightly integrated with and follows the lifecycle of your User registration,
which means that calling Shake.unregisterUser
also disconnects the current user from chat
and they won't receive any new messages until registered again.
Notifications
Shake will notify your user when you send them a new message from the Shake dashboard. Notifications are presented automatically to the user. You don't have to code anything.
note
Shake supports only local notifications. That means that your users won't get notified about new messages when your app is in the background.
Unread messages
If you want to show number of unread chat messages somewhere in your app, you can set the unread messages listener. The listener is called immediately when set and on each change in the number of unread messages for a registered user:
- Java
- Kotlin
Shake.setUnreadChatMessagesListener(new UnreadChatMessagesListener() {@Overridepublic void onUnreadMessagesCountChanged(int count) {// Update number in your text element}});
Shake.setUnreadChatMessagesListener(object : UnreadChatMessagesListener {override fun onUnreadMessagesCountChanged(count: Int) {// Update number in your text element}})
To remove the unread messages listener, use Shake.setUnreadChatMessagesListener(null)
.