Clear user data at logout by invoking the clearUserData API. This will clear all user data including conversations from the app and users’ can no longer access old conversations after this.

getHotline ().ClearUserData ()

3. Launching the Support Experience

Use the code below to launch into the FAQ or Conversation based support experience from a call to action in your app. Your call to action or entry point could be a menu item in your game or an option in main screen of the game.

3.1 FAQs

Use the showFAQs() API to launch the FAQs screen. By default the FAQ Categories is displayed as a grid with a “Contact Us” button at the bottom. For customising this, check the FAQ Options.

Eg. To launch default FAQ experience:

getHotline ().ShowFAQs ()

Customize the FAQ experience

Customizations to the FAQ Flow can be achieved by specifying the relevant options in the FaqOptions instance passed to the showFAQs() API as listed below.

Use the showConversations() API to launch the Conversation Flow.If the app has multiple channels configured, the user will see the channel list.If the app has only one channel configured, the user will be directy taken to the conversation.

For users who don’t have push enabled, a badge count can be displayed somewhere in your app to grab user’s attention to unread messages. Invoke the GetUnreadCountAsync() API from your script’s update() or start() method