Skip to content

Latest commit

 

History

History
77 lines (56 loc) · 3.76 KB

README.md

File metadata and controls

77 lines (56 loc) · 3.76 KB

PubNub Chat Components for Android

WARNING: PubNub no longer supports this software library, but you are welcome to contribute.

Chat components provide easy-to-use building blocks to create Android chat applications, for use cases like live event messaging, telemedicine, and service desk support.

Our Android component library provides chat features like direct and group messaging, typing indicators, presence, and reactions. You don't need to implement a data source by yourself and go through the complexity of designing the architecture of a realtime network. Instead, use our components, predefined repositories, and view models to create custom apps for a wide range of use cases.

Features

  • User and Channel Metadata: Add additional information about the users, channels, and their memberships (and store it locally for offline use)
  • Subscriptions: Subscribe to user channels automatically
  • Messages: Publish and display new and historical text messages
  • Presence: Get currently active users, observe their state, and notify about changes
  • Typing Indicators: Display notifications that users are typing
  • Persistent Data Storage: Store messages, channels, and users locally
  • Paging: Pull new data only when you need it
  • Jetpack Compose: Build native UI with a modern toolkit

Available components

Prerequisites

Name Requirement
Android Studio > = Dolphin 2021.3.1 Patch 1
Platform Android
Language Kotlin
UI Toolkit Jetpack Compose
PubNub Kotlin SDK > = 7.3.2

Usage

Install chat components

  1. Inside your Android Studio project, open the module's build.gradle module and add both Kotlin SDK and PubNub Chat Components for Android implementations:

    implementation "com.pubnub:pubnub-kotlin:7.3.2"
    implementation "com.pubnub.components:chat-android:0.6.0"
  2. Click Sync Now or Sync Project with Gradle Files to build dependencies for your Android project.

Test sample apps

Explore sample apps that are built using chat components.

Follow the steps in the Getting Started guide to set up a sample chat app and send your first message.

Related documentation

Support

If you need help or have a general question, contact support.