Skip to content

Quick Start Guide

This guide walks you through a minimal Pulsate integration. Budget about 20 minutes.

  1. Install the SDK — add the Maven Central dependency and your App ID / App Key.
  2. Start a session — start the first Pulsate session for your user; every future session is automatic.
  3. Configure push notifications — connect Firebase Cloud Messaging so Pulsate can send pushes.
  4. Request permissions — ask the user for notification permission (and location permission if you use geofencing).

After these four steps you can send your first campaign from the Pulsate CMS.

// 1. Application class — initialize with your credentials
class MyApp : Application() {
override fun onCreate() {
super.onCreate()
PulsateFactory.getInstance(PulsateAuthData(APP_ID, APP_KEY))
}
}
// 2. First screen after login — start the session for your user
val pulsateManager = PulsateFactory.getInstance()
pulsateManager.startPulsateSessionForAlias(
"unique-user-id-in-your-system",
object : IPulsateRequestListener {
override fun onSuccess() { /* session started */ }
override fun onError(e: Throwable?) { /* handle error */ }
},
)