zoho / salesiq-mobilisten-android-sample

Sample App to integrate SalesIQ Android SDK (Mobilisten)
https://mobilisten.io/
14 stars 4 forks source link

How do I open recent Conversations Page on button click? #5

Closed bimsina closed 4 years ago

bimsina commented 4 years ago

I would like to open the recent chats if any on custom button click. However if there aren't any recent chats I would like to open a new chat window.

Angu-G commented 4 years ago

Hello @bimsina , You can do the same using .open() API we provided.

bimsina commented 4 years ago

As the documentation says If the chatID is not mentioned, a recent chat or a new chat(if no chats are available) will be opened. , but I don't want to open the recent chat I want to open a list of recent chats that the user has performed.

bimsina commented 4 years ago

Right now (I think) the only way to open the recent conversations is by enabling the launcher button , but I need to disable the launcher button and add a custom button to open the recent conversations page. Screenshot_20200617-121701

Angu-G commented 4 years ago

We don't have support for this as of now. We are working on this and will update here in a couple of weeks.

bimsina commented 4 years ago

@Angu-G Is there an ETA on when this will be available?

Angu-G commented 4 years ago

@bimsina It will be available by next week.

Angu-G commented 4 years ago

@bimsina , you can open the conversation UI of SDK using ZohoSalesIQ.Chat.show() API. It is available from 2.1 version.

bimsina commented 4 years ago

Seems like I can't access the method. It gives me an error Unresolved reference: Chat

unresolved ref

Angu-G commented 4 years ago

@bimsina, If you are working on the Kotlin project, Please use ZohoLiveChat instead of ZohoSalesIQ. ZohoLiveChat.Chat.show()