Recent searches


No recent searches

Android - Toolbar back button event of Zendesk Messaging Activity



Posted Nov 22, 2022

I want to access the toolbar back event for Zendesk messaging activity for end chat on customization.

Please let me know if it is feasible or give me another option.

I have tried multiple ways like parent-Child activity using a handle but not work.


0

2

2 comments

image avatar

Mei-E Loh

Zendesk Product Manager

Hi Manisha, 

If i understand correctly, you want to give your customers the ability to end a chat through the sdk?

If so, the SDK adds Zendesk Messaging capability rather than a live chat.  So the user experience is more of a continuous ongoing conversation and the chat cannot be ended from client side. The best way to end a chat and create a new ticket is to use triggers or automations to close a ticket. 

You can check out a detailed breakdown of the differences between messaging and live chat in Zendesk messaging vs live chat: Which is right for you.

If you could also let us know why a customer ending a chat is important for your business, we maybe able to offer other alternatives. 

Cheers,

Mei-E 

0


Hi Mei-E Loh,

I have used Zendesk SDK using implement Live chat with MessagingActiivty
Please check below code snippet.

Chat.INSTANCE.init(this, ZENDESK_CHAT_ACCOUNT_KEY)
val chatConfiguration = ChatConfiguration.builder()
.withPreChatFormEnabled(true)
.withNameFieldStatus(PreChatFormFieldStatus.OPTIONAL)
.withEmailFieldStatus(PreChatFormFieldStatus.OPTIONAL)
.withPhoneFieldStatus(PreChatFormFieldStatus.OPTIONAL)
.withDepartmentFieldStatus(PreChatFormFieldStatus.OPTIONAL)
.withAgentAvailabilityEnabled(true)
.build()
this.context?.let {
MessagingActivity.builder()
.withBotAvatarDrawable(R.mipmap.ic_klipsch_connect_logo)
.withToolbarTitle(getString(R.string.str_live_chat))
.withBotLabelString(getString(R.string.str_klipsch))
.withEngines(ChatEngine.engine())
.show(it, chatConfiguration)
}

I am able to customize basic UI changes but Zendesk Messing SDK not exposed events or API for end chat.

I want to perform an action on the end chat event so I need an end chat event.

I tried to implement using the Parent-child activity but Messaging Activity launched on top of the activity, not in the child activity.

So please help me out using resolved this issue.

Thanks.


0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post