Skip to content

wajahatkarim3/android-kotlin-chat-app

 
 

Repository files navigation



CometChat Android Demo app (built using CometChat Pro) is a fully functional messaging app capable of one-on-one (private) and group messaging. The app enables users to send text and multimedia messages like audio, video, images, documents.

Platform Platform

Table of Contents

  1. Screenshots

  2. Installation

  3. Run the Sample App

  4. Customizing the UI

  5. Integrating this sample into your own app

  6. Contribute

ScreenShots

Installtion

Simply Clone the project from android-kotlin-chat-app repository and open in Android Studio. Build the Demo App and it will be ready to Run

Run the Sample App

To Run to sample App you have to do the following changes by Adding ApiKey and AppId

  • Open the Project in Android Mode in Android Studio

  • Go to Under java --> com\inscripts\cometchatpulse--> StringContract

  • Under class StringContract.kt go to class named AppDetails

  • modify APP_ID and API_KEY with your own ApiKey and AppId

    val APP_ID: String = "XXXXXXXXX"

    val API_KEY: String = "XXXXXXXXX"

Note

You can Obtain your APP_ID and API_KEY from CometChat-Pro Dashboard

For more information read CometChat-Pro Android SDK Documentation

Studio Guide

Customizing the UI

We have provided three themes with our sample app namely PersianBlue, MountainMeadow, AzureRadiance. To apply the themes:

  • Go to Application class CometChatPro

  • Create constructor of class Appearance and pass any of these three values

    1.PERSIAN_BLUE

    2.MOUNTAIN_MEADOW

    3.AZURE_RADIANCE

example Appearance(Appearance.AppTheme.PERSIAN_BLUE)

To make your custom appearance go to Appearance class under package named Utils i.e

Go to Under java --> com\inscripts\cometchatpulse--> Utils--> Appearance

Integrating this sample into your own app

Copy sample app in your project

remove login and add your own authentication method

launch MainActivity and start using the app

Contribute

Feel free to make Pull Request.

About

Android Kotlin Chat App (Includes 100% Ready UI)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Kotlin 96.8%
  • Java 3.2%