dismissNotificationAfterClick

fun dismissNotificationAfterClick(context: Context, payload: Bundle)

Forcefully dismisses a Notification posted to the status bar. This is required when action buttons are clicked since autoCancel does not work with action button

Parameters

context

An instance of the Application Context

payload

The Bundle which is passed with the intent