-1

How to add member to conversation/channel using twilio-conversation in react-native ?

React Native JavaScript SDK.

conversation.add(chatUserId)

add() not working, giving Bad Request error

Rahul B
  • 1
  • 1
  • Can you share more info? Are you using the JavaScript SDK? What have you tried? Care to share some examples or what is not working? Please check out [how do I ask good questions?](https://stackoverflow.com/help/how-to-ask) – E.ws Jul 04 '22 at 08:11

1 Answers1

0

If you are using the JavaScript SDK as recommended for React Native:

Add a user to a conversation

So basically

conversation.add(<identity>)
E.ws
  • 513
  • 4
  • 17
  • thanks for you response. I am doing the same but it is throwing Error: Bad Request – Rahul B Jul 04 '22 at 13:02
  • Please see my comment above. – E.ws Jul 04 '22 at 15:05
  • I did same, conversation.add(chatUserId) but add() not working, giving Bad Request error. – Rahul B Jul 05 '22 at 04:32
  • As far as I know there should be a more detailed error-message and error-code. Please check [JavaScript Error Handling](https://www.twilio.com/docs/conversations/error-handling-diagnostics#javascript-error-handling). – E.ws Jul 05 '22 at 16:23