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.