# enablePushNotifications

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

Enables the Push Notifications for incoming messages. Enable notifications against XMPP server. It must be called after setPushToken or to have the dnd option disabled in order for it to work.

#### 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.