CometChat Android Demo app (built using CometChat Pro) is a fully functional messaging app capable of one-on-one (private) and group messaging along with recent conversations. The app enables users to send text and multimedia messages like audio, video, images, documents.
Table of Contents
Installtion
Simply Clone the project from android-java-chat-app repository and open in Android Studio. Build the Demo App and it will be ready to Run
v2 Apps
To run our open source app with CometChat Pro v2, follow these steps:
- Check out to branch v2
-
modify APP_ID and API_KEY with your own ApiKey , AppId and REGION
`public static final String APP_ID = "XXXXXXXXX";` ` public static final String API_KEY = "XXXXXXXXX";` `public static final String REGION = "XXXXXXXXX";`
- Build and run the Sample App.
v1 Apps
To run our open source app with CometChat Pro v1, follow these steps:
- Check out to branch v1
-
modify APP_ID and API_KEY with your own ApiKey and AppId
`public static final String APP_ID = "XXXXXXXXX";` ` public static final String API_KEY = "XXXXXXXXX";`
- Build and run the Sample App.
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\demo --> Contracts --> StringContract
-
Under class
StringContract.class
go to staticclass
namedAppDetails
-
modify APP_ID and API_KEY with your own ApiKey and AppId
public static final String APP_ID = "XXXXXXXXX";
public static final String API_KEY = "XXXXXXXXX";
Note
You can Obtain your APP_ID and API_KEY from CometChat-Pro Dashboard
For more information read CometChat-Pro Android SDK Documentation
Screenshots
Contribute
Feel free to make Pull Request.