Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Getting messages from the server.
@Override
protected void onResume() {
super.onResume();
SendBird.addConnectionHandler(YOUR_CONNECTION_HANDLER_ID, new SendBird.ConnectionHandler() {
@Override
public void onReconnectStarted() {
SendBirdSyncManager.getInstance().pauseSync();
}
@Override
public void onReconnectSucceeded() {
SendBirdSyncManager.getInstance().resumeSync();
}
@Override
public void onReconnectFailed() {
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment