Hi Community, is it possible to add additional data(hope to add server generated custom rich massages ) by nodejs server, between a chat implemented in a mobile app(both iOS & Android)?
Could some one help me out?
Hi @asanka and welcome to the Sendbird Community!
You can send messages from your Node.js back-end (Learn more in the docs here).
If you would like to differentiate these types of messages from other normal user messages, you can specify the custom_type
or data
fields when sending a message.
Then you have to display the message accordingly in your front-end (Android & iOS) by reading the custom_type
or data
field of each message before rendering.
Hope this helps.
Great !!! Thanks for the support.