Skip to content

In app chat example application guide

Francisco Fortes edited this page Jun 9, 2023 · 2 revisions

How to run in-app chat example application

Within the SDK we offer the ChatExample, a stand alone application for testing all available features first-hand, and for comparing its source code with yours, in case you are facing any issue in your implementation.

In order to test the ChatExample you need the first two steps of the InAppChat Quick Start ready, so you have a working application code.

Then, within the ChatExample, install its pods:

$ cd infobip-mobile-messaging-ios/ChatExample
$ pod install

Now, open MobileChatExample.xcworkspace and add your application code to AppDelegate.swift, here:

MobileMessaging
    .withApplicationCode("your-application-code", notificationType: .alert)?
    .withInAppChat()
    .start()

Then you can run the application on a real device.

Our ChatExample has different list of options, from the basic ways of presenting the chat (as modal, as part of a navigation controler, etc), to customising the chat, not forgetting the change of language for the UI, setting light or dark mode, etc. We invite you to play with it and discover everywhing Livechat has to offer.

Clone this wiki locally