Android - Toolbar back button event of Zendesk Messaging Activity



2022년 11월 22일에 게시됨

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개

      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


      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


      댓글을 남기려면 로그인하세요.

      원하는 정보를 못 찾으셨나요?

      새 게시물