diff --git a/app/src/main/java/org/linphone/notifications/NotificationsManager.kt b/app/src/main/java/org/linphone/notifications/NotificationsManager.kt index 7bf23f1d7..b863c2464 100644 --- a/app/src/main/java/org/linphone/notifications/NotificationsManager.kt +++ b/app/src/main/java/org/linphone/notifications/NotificationsManager.kt @@ -388,12 +388,12 @@ class NotificationsManager(private val context: Context) { .setCustomHeadsUpContentView(notificationLayoutHeadsUp) .build() + Log.i("[Notifications Manager] Notifying incoming call notification") + notify(notifiable.notificationId, notification) + if (useAsForeground) { Log.i("[Notifications Manager] Notifying incoming call notification for foreground service") startForeground(notifiable.notificationId, notification) - } else { - Log.i("[Notifications Manager] Notifying incoming call notification") - notify(notifiable.notificationId, notification) } }