Managing Push Notifications (Opt In / Opt Out)

Pulsate pushes are enabled by default for every user. You can opt individual users out (and back in) — for example from a notification-settings screen in your app.

This setting only affects Pulsate-initiated pushes; it does not touch other push traffic in your app.

Opting in / out

val pulsateManager = PulsateFactory.getInstance()

if (user.allowsPushNotifications) {
    pulsateManager.setPushNotificationEnabled(true)   // opt in
} else {
    pulsateManager.setPushNotificationEnabled(false)  // opt out
}

Reading the current state

Callback style:

pulsateManager.isPushNotificationEnabled(object : IPulsateValueListener<Boolean?> {
    override fun onSuccess(value: Boolean?) {
        // value == true → user receives Pulsate pushes
    }
    override fun onError(e: Throwable) { }
})

What opted-out users still get

Opted-out users receive no Pulsate pushes. They still get:

To list all opted-out users server-side, use the CMS API's Push Opt Outs: Get All endpoint.