Skip to content

erxes/erxes-android-sdk

erxes Android Messenger SDK

Native Android SDK that embeds a fully-featured erxes customer messenger — real-time chat, knowledge base, and support tickets — into your Android app. Kotlin-first port of the erxes iOS SDK.

Status: in development. See ROADMAP.md for what works today.

Features (target parity)

  • 🔴 Real-time chat over WebSocket (graphql-ws) with auto-reconnect
  • 🤖 Bot conversations with typing indicators
  • 🎈 Draggable launcher button that snaps to screen corners
  • 📎 Image upload (PNG/JPEG) with progress
  • 📚 Knowledge base browsing & search
  • 🎫 Support ticket creation & tracking
  • 👤 Optional user identification

Requirements

  • Android 7.0 (API 24)+
  • Kotlin · Jetpack Compose
  • An erxes backend endpoint + integration ID (Dashboard → Settings → Integrations)

Install

// settings.gradle.kts → repositories { mavenCentral(); mavenLocal() }
dependencies {
    implementation("com.erxes:messenger-sdk:0.30.5")
}

Quick start

// Application.onCreate()
ErxesMessenger.configure(
    context = this,
    config = MessengerConfig(
        endpoint = "https://your.erxes.instance",
        integrationId = "YOUR_INTEGRATION_ID",
    ),
)

// Optional — identify the signed-in user
ErxesMessenger.setUser(MessengerUser(email = "jane@example.com", name = "Jane Doe"))
ErxesMessenger.clearUser() // on logout

Open the messenger:

// Imperative
ErxesMessenger.show(activity)

// Or in Compose
ErxesMessengerHost {
    MessengerLauncher()   // floating draggable button
}

Documentation

Doc What
docs/PROTOCOL.md Backend contract: endpoints, GraphQL ops, WebSocket flow
docs/ARCHITECTURE.md Module layout, tech stack, public API
docs/PORTING-MAP.md iOS → Android file mapping
ROADMAP.md Phased implementation plan

Contributing

Contributions are welcome — see CONTRIBUTING.md and our Code of Conduct. To report a security issue, see SECURITY.md.

License

Licensed under AGPL-3.0, matching the upstream erxes SDK. See LICENSE.

About

erxes Android SDK, for integrating erxes into your android application

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages