Top

getConversationId() always empty

Répondu

Commentaires

4 commentaires

  • Pascal BORSCHNECK

    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

     

    0
    Actions pour les commentaires Permalien
  • Le-Trong-Nghia HUYNH

    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

    0
    Actions pour les commentaires Permalien
  • Jonathan PETIT

    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

    0
    Actions pour les commentaires Permalien
  • Soesapto-Joeni HANTORO

    This is what I'm waiting for  :D

    Thank you so much.

    0
    Actions pour les commentaires Permalien

Vous devez vous connecter pour laisser un commentaire.

  • Demandez à la Communauté

    Vous avez besoin d'aide? Posez vos questions à la Communauté et obtenez des réponses d'autres utilisateurs Rainbow.

    Poster un message