Demo api URL : https://tourn.darkmatter.in/
Create two users on the demo web application one to send message and another to receive messages.
Edit ApiConstant.kt accordingly
Use postman Login EndPoint : https://tourn.darkmatter.in/api/login Register EndPoint : https://tourn.dartkmatter.in/api/register
Update access token and user id in MyApplication.kt code:
private fun createDemoUser() {
val user = User()
user.id = //YOUR_USER_ID
user.accessToken = "Your access token"
AccessTokenManager.save(user)
}
Run android
Open the web application https://tourn.darkmatter.in/ Select the user whose access token is used in android android Then send the message.