Quick Start Guide

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

The four required steps

  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.

Recommended next steps

Minimal integration at a glance

// 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 */ }
    },
)

⚠️

Do not start a session from Application.onCreate() — Pulsate needs an Activity on screen. Start it from your first Activity or Fragment instead. See Sessions.