sippo-sdk / com.quobis.sippo.sipposdk.chat / Chats / enablePushNotifications

enablePushNotifications

fun enablePushNotifications(context: Context, onCompletion: (SippoClientError?) -> Unit): Unit

Enable the reception of chat push notifications. In order to enable them you need to have registered a Firebase push token beforehand (@see Sessions' setPushToken method).

Parameters

context - Application context.

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