onPushClicked

fun onPushClicked(context: Context, uniqKey: String, buttonUniqKey: String?)

Creates and deliveries event of "Push clicked". Recommended call this method from background thread.

Parameters

context

used to initialize the main tools

uniqKey
  • unique identifier of push notification

buttonUniqKey
  • unique identifier of push notification button


fun onPushClicked(context: Context, intent: Intent): Boolean

Creates and deliveries event of "Push clicked". Recommended to be used with Mindbox SDK pushes with handleRemoteMessage method. Intent should contain "uniq_push_key" and "uniq_push_button_key" (optionally) in order to work correctly Recommended call this method from background thread.

Return

true if Mindbox SDK recognises push intent as Mindbox SDK push intent false if Mindbox SDK cannot find critical information in intent

Parameters

context

used to initialize the main tools

intent
  • intent received in app component