getChannelId

abstract fun getChannelId(@NonNull payload: BatchPushPayload, deductedChannelId: String): String

Method that should return the notification channel id that should be Note that it might be called on any API level, even ones lower than O.

If this method throws an exception, Batch will use the value of deductedChannelId.

Return

The channel ID to use for this notification. If you return null, deductedChannelId will be used.

Parameters

payload

Full push payload. Read your custom payload as string values, using getString on getPushBundle

deductedChannelId

Channel ID