Skygear Chat Quick Start

Follow the steps below to add Skygear Chat to your app.

Step 1: Add Skygear Core to your app

Skygear Core provides you the cloud database and the user authentication modules. They are required modules for Skygear Chat.

Step 2: Add Skygear Chat to your app

You also need to install the Chat plugin SDK into your project via Gradle.

  1. Add io.skygear.plugins:chat:+ dependency in your build.gradle of the module.
dependencies {
    // other dependencies
    compile 'io.skygear:skygear:+' // from Android Quickstart
    compile 'io.skygear.plugins:chat:+'
}
  1. You will be hinted for a project sync as you have updated the gradle files. The Skygear Android SDK will have been installed when the sync is completed.

  2. In each of your file to use Skygear Chat, make sure you have import the Skygear Chat SDK besides the core SDK.

import io.skygear.plugins.chat.*;

Step 3: Enable the chat in your developer portal

Lastly, enable the chat module in your developer portal. It is in the plug-ins page.

Skygear plug-ins

Cool your are all set now.

What's next from here

You got the basic. Next, learn more about: