Repository navigation
Changelog :
- Add Phoenix realtime transport. The
realtime_transportvalue from the app config selectsmqtt,both, orphoenix; a missing or unknown value stays onmqtt. - In
bothandphoenix, realtime events come from the Phoenix gateway over a websocket. Socket and room tokens are one-time tokens and are redacted in logs. - The
/configis reloaded on the gatewaytransport_changedevent and when the app returns to the foreground (not inmqttmode).
realtime_transport |
Realtime events | Notes |
|---|---|---|
mqtt (default) |
MQTT | same as before |
both |
Phoenix | falls back to MQTT after 3 failed attempts before the first join |
phoenix |
Phoenix | presence and custom events are not realtime |
A client that started while its app was on mqtt picks up a new transport after the app is relaunched.
Installation
Add the Qiscus repository to your project build.gradle (or settings.gradle):
repositories {
maven { url "https://artifactory.qiscus.com/artifactory/qiscus-library-open-source" }
}Then add the dependency to your app build.gradle:
dependencies {
implementation 'com.qiscus.sdk:chat-core:1.13.0'
}