getPushNotificationId

open fun getPushNotificationId(@NonNull context: Context, defaultId: Int, @NonNull pushIntentExtras: Bundle): Int

Notification Id to use when posting the notification to the system. This id should be unique per notification, unless you want to update it with other pushes (such as a sports game score update, for example) If you always return the same value, the notification can behave unexpectedly.

Return

A valid notification id.

Parameters

context

Context. Will usually be a service context.

defaultId

Notification Id that was generated and about to be used by Batch

pushIntentExtras

Raw push intent extras. Read directly your custom payload values from the extras as string values, or use payloadFromReceiverExtras to extract Batch data from the intent.