SDK For Data Streaming
Android
6min
Add the JitPack repository to your build file in your root build.gradle at the end of repositories:
Add Qualetics SDK to your apps build.gradle file.
In the same file under application - tag you need to define mqtt client service which is used as protocol for communicating with Qualetics servers.
To use the SDK it first needs to be initialized
To set the appVersion parameter that is sent with the messages you can set it with:
To set default actor that will be sent with all messages without defined actor:
To set default actor to be stored from api call:
Then connect to server:
After connection is initialized it can be used to send events to the server
Updated 11 Dec 2023
Did this page help you?