Top

Android SDK - Conversation disappear and empty conversation id

Comments

5 comments

  • Jérôme Gully

    Hi,

    When no activity for 60 day in a bubble, it is set to inactive and the conversation associated is deleted. To switch again to active bubble (and have a conversation), you must send a message to it. For the moment no other way to do that.

    0
    Comment actions Permalink
  • Muhammad Syahroyni

    Hi Jerome,

    In Rainbow Web Official, I try to open a bubble that already inactive and the conversation show in list conversation without sending a message first. And when I try to reload the webpage, the conversation still in there. 

    0
    Comment actions Permalink
  • Olivier ANGUENOT

    Hi Muhammad,

    In fact, on Android, when you call the method getConversationFromRoom(), you will receive a Conversation object. And this conversation is added to the list of conversations. So your list should be updated.

    Once you have that conversation, you could call as usual the method getMessagesFromConversation(conversation) to display the list of conversation

    The fact that there is no "id" in that conversation informs you that the conversation is only opened locally on your device. If you connect with an other application (ex Rainbow Web), you will not show that conversation. The only way to have it open for all your devices is when you add or receive a message in that conversation. It seems that what you saw in the web client today is an issue...

    What is still strange is why your conversation disappears after a while. After checking internally, conversation is not closed when bubble is inactive. So the only explanation is that perhaps you have opened a web client that have a limitation on the number of conversations opened. Doing that, Web client has automatically closed some conversations if you are above this threshold.

    Could you check that you can do what you want with these explanations ?

    Don't hesitate if something is still missing ?

    Olivier

     

    0
    Comment actions Permalink
  • Muhammad Syahroyni

    So when I use method below :

    getConversationFromRoom(room)

    or

    getConversationFromContact(contact)

     

    the returned object conversation will get from local or remote from the server?

    0
    Comment actions Permalink
  • Olivier ANGUENOT

    Hi Muhammad,

    As the Android SDK automatically synchronizes with the Rainbow server, when using these function, you can have 2 cases:

    - You receive a conversation with an ID: This indicates that the conversation is opened on server and so is available for all your devices (sync on all devices.

    - You receive a conversation without an ID: This indicates that the conversation has been created only on your mobile device and so is not sync with the server.

    But a soon as you sent a message to the server or receive one, the SDK synchronizes that conversation and so an ID will be available.

    So when using these function, the SDK makes no request to Rainbow, either a conversation exists (from server) or a new local conversation is created (can be used to read only existing messages)

    Hope that helps,

    Regards,

    Olivier

    0
    Comment actions Permalink

Please sign in to leave a comment.

Still can't find what you need?

  • Contact Us

    Do you have any question about Rainbow? Leave us a message to get more information.

    Contact
  • Ask the Community

    Do you need help? Ask your questions to the Community and get answers from other Rainbow users.

    Post message