diff --git a/app/src/main/java/org/linphone/notifications/NotificationsManager.kt b/app/src/main/java/org/linphone/notifications/NotificationsManager.kt index ef63fd626..bb6e80da2 100644 --- a/app/src/main/java/org/linphone/notifications/NotificationsManager.kt +++ b/app/src/main/java/org/linphone/notifications/NotificationsManager.kt @@ -287,7 +287,11 @@ class NotificationsManager(private val context: Context) { } Log.i("[Notifications Manager] Notifying [$id] with tag [$tag]") - notificationManager.notify(tag, id, notification) + try { + notificationManager.notify(tag, id, notification) + } catch (iae: IllegalArgumentException) { + Log.e("[Notifications Manager] Exception occurred: $iae") + } } fun cancel(id: Int, tag: String? = null) {