getConversationId() always empty
AnsweredI create an activity to display rooms/bubbles, then I want to open room activity from it. I try to use getConversationId() but it always empty.
Is there any condition/requirement to use getConversationId() ?
I have sent some messages from web-sandbox, sot it already have conversation, but conversationId() still empty.
Intent intent = new Intent(RoomsActivity.this, RoomActivity.class);
intent.putExtra("conversationId", room.getConversationId());
startActivity(intent);
-
Hi Soesapto-Joeni,
Sorry for the delay, your question was blocked somewhere.
I suppose you are trying to use Android SDK ?
I think you had a look at https://hub.openrainbow.com/#/documentation/doc/sdk/android/guides/Retrieve%20conversations%20and%20contacts to get all the conversations ?
And/or https://hub.openrainbow.com/#/documentation/doc/sdk/android/guides/Managing_bubbles ro get the conversation from the room/bubble ?I'll also ask Android team about
room.getConversationId()
I don't see in the doc.
Regards,
Pascal -
Hello Soesapto-Joeni and Pascal,
And/or https://hub.openrainbow.com/#/documentation/doc/sdk/android/guides/Managing_bubbles ro get the conversation from the room/bubble ?
Yes, to get (or open if not done yet) the conversation, you should call the method getConversationFromRoom with your Room object (see part "DISCUSS IN A BUBBLE" from the above link).
However, I don't know why getConversationId() always returns empty, we'll check that, thank you :)
Nghia
-
Hi Soesapto-Joeni,
To retrieve your conversation using room, i advice to do it :
Intent intent = new Intent(RoomsActivity.this, RoomActivity.class);
intent.putExtra("conversationId", room.getId());
startActivity(intent);
And in your RoomActivity activity, I advice to do it:
Room rooom = findBubbleById(roomId);
And after do :RainbowSdk.instance().conversations().getConversationFromRoom(room, new IRainbowGetConversationListener() {
@Override
public void onGetConversationSuccess(final IRainbowConversation conversation) {
// do something
}
@Override
public void onGetConversationError() {
// do something
}
});getConversationId is not filled correctly. We will remove it or fill correctly it in future version.
Is it ok for you?
Regards
Jonathan
Please sign in to leave a comment.
Comments
4 comments