handleReceivedIntent

fun handleReceivedIntent(context: Context, intent: Intent, runOnThread: Boolean = true)

Routes an incoming push Intent to the appropriate handler. By default, processing occurs on a background coroutine to avoid blocking the calling thread.

Parameters

context

The Android Context.

intent

The push intent to handle.

runOnThread

If true (default), processes on a background thread; if false, runs on the caller thread.