NotificationConfig
constructor(pushNotificationsEnabled: Boolean = true, ignorePushMessagesWhenUserOnline: Boolean = true, ignorePushMessageWhenUserOnline: (type: String) -> Boolean = { type ->
when (type) {
ChatNotification.TYPE_MESSAGE_NEW -> ignorePushMessagesWhenUserOnline
ChatNotification.TYPE_NOTIFICATION_REMINDER_DUE -> false // Always show reminder notifications
else -> true // Default behavior for unknown types
}
}, pushDeviceGenerators: List<PushDeviceGenerator> = listOf(), shouldShowNotificationOnPush: () -> Boolean = { true }, requestPermissionOnAppLaunch: () -> Boolean = { true }, autoTranslationEnabled: Boolean = false, tokenProvider: TokenProvider? = null)