handleMessage

fun handleMessage(pushBundle: Bundle)

Internal method that handles incoming push notification messages.

This is a final method called by the SDK when a push notification arrives. It processes the notification bundle and delegates to onMessageReceived for custom handling. You should override onMessageReceived instead of calling this method directly.

The method runs on a background worker thread and performs the following:

  • Validates the notification payload
  • Creates a PushMessage from the bundle
  • Calls onMessageReceived for custom processing
  • Handles notification display based on your return value

Parameters

pushBundle

push notification payload as Bundle containing all notification data

See also