cordova-ionic-chat-app icon indicating copy to clipboard operation
cordova-ionic-chat-app copied to clipboard

Voice & Video Calling and Text Chat App for Cordova/Ionic

cometchat-pro-Ionic-sample-app

CometChat ionic 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 messages.

Platform

Table of Contents

  1. Config Local Enviroment

  2. Config App

  3. Running the sample app

  4. Contributing

Config-Local-Enviroment

  1. Before proceeding, make sure the latest version of Node.js and npm are installed.

  2. Install the Ionic CLI


npm install -g ionic

For further and detailed steps, please visit the ionic documentation

Config-App

v2.0+

Git clone and checkout v2 branch.

Get your Application Keys

Signup for CometChat and then:

  1. Create a new app - select version as v2 and region as Europe or USA.

  1. Head over to the API Keys section and click on the Create API Key button

  2. Enter a name and select the scope as Auth Only

  3. Now note the API Key and App ID

  4. Replace appID,   apiKey and   appRegion in src/app/login/login.page.ts with your APP ID,   API KEY  and  APP Region respectively.

v1.0+

Git clone and checkout v1 branch.

Get your Application Keys

Signup for CometChat and then:

  1. Create a new app - select version as v1

  1. Head over to the API Keys section and click on the Create API Key button

  2. Enter a name and select the scope as Auth Only

  3. Now note the API Key and App ID

  4. Replace appID,   apiKey in src/app/login/login.page.ts with your APP ID,  and  API KEY respectively.

Running the sample app

Once you have changed the app key values you can install the dependencies and run the project:

npm install
 $ ionic serve -l

The above command will run the App in your browser.

To run the App in device simulator you can run the below command :

  $ ionic cordova emulate ios --target=iPhone-6s

Note : You can change the platform (ios/android) and target(device on which you want) in the above command.

Contributing

Feel free to make a suggestion by creating a pull request.