suspend

fun suspend(onCompletion: (SippoResourceError?) -> Unit)

Suspends a chat session. This should be called when the app enters background in order to receive chat push notifications.

Parameters

onCompletion

Callback that will be invoked when the request is completed. It will receive a SippoResourceError if any error occurs. In case of success, error will be null.