isNotificationRequired

open fun isNotificationRequired(context: Context, payload: Bundle): Boolean

Return value of this method decides whether a notification should be shown or not. In case you are overriding this method ensure you call super(context, payload), notifications will not be shown if super is not called. Note: If the super(context, payload) returns false ensure that the method always returns false.

Return

true if the notification should be shown to the user else false.

Parameters

context

instance of Context

payload

push payload