QuickBlox / q-municate-android

Qmunicate Android chat application
MIT License
254 stars 197 forks source link

How can i pass one more parameter with message in chat dialog? #293

Closed tatveshwebmigrates closed 1 year ago

tatveshwebmigrates commented 6 years ago

how can i send custom parameter with message and how can i edit QBChatMessage.java default class in android demo.

QBChatMessage chatMessage = new QBChatMessage(); chatMessage.setBody(body); chatMessage.setProperty(ChatNotificationUtils.PROPERTY_DATE_SENT, String.valueOf(time));

i want to send one more parameter with -> chatMessage.setCustomparameter("Some String"); how it is possible?

tatveshwebmigrates commented 6 years ago

hello????

RomanPronin commented 6 years ago

Hi, as states in docs you can use custom parameters for the messages you send in the chat: chatMessage.setProperty("name", "Bob"); chatMessage.setProperty("age", "25");