Android Bubble problem after accepting invitation
Hi,
In android after accepting the invitation of bubble unable to get the conversion of that bubble. But after re-login, I am able to see the conversation of that room
Thanks and regards
Sandeep
-
Hi,
Do you try this?
LISTEN TO AN INVITATION
There is no event to listen which would be triggered when you receive an invitation to join a Bubble.
However, you can listen to the data changed of the list
getAllBubbles()
which is anArrayItemList
. See guide Using ArrayItemList.This list includes all Bubble: active, pending, archived.
To listen to the list:
RainbowSdk.instance().bubbles().getAllBubbles().registerChangeListener(m_changeListener);
Do not forget to unregister:
RainbowSdk.instance().bubbles().getAllBubbles().unregisterChangeListener(m_changeListener);
And provide the object:
private IItemListChangeListener m_changeListener = new IItemListChangeListener() { @Override public void dataChanged() { // Do something in the thread UI } };
In the API
dataChanged()
, you can update, for example the UI, by getting the list you need:-
getAllList()
: all Bubbles except pending and archived -
getPendingList()
: pending Bubbles (invited to join) -
getMyList()
: my Bubbles (Bubbles you own) -
getArchivedList()
: archived Bubbles
-
Please sign in to leave a comment.
Comments
1 comment