Skip to main content
The SDK emits 10 lifecycle events. Subscribe with MicroSurvey.on(name, listener); the call returns an unsubscribe function.

Event matrix

When events fire

Common patterns

Fan out to your own analytics

Surface errors in dev

Show a thank-you toast

Differentiate online vs queued

Memory model

Listeners are held by reference. The SDK doesn’t weak-ref them; if you don’t call the returned unsubscribe, the listener (and anything it closes over) lives for the lifetime of the app. Always unsubscribe in cleanup.