diff --git a/packages/stream_video_flutter/android/src/main/kotlin/io/getstream/video/flutter/stream_video_flutter/service/notification/StreamNotificationBuilderImpl.kt b/packages/stream_video_flutter/android/src/main/kotlin/io/getstream/video/flutter/stream_video_flutter/service/notification/StreamNotificationBuilderImpl.kt index 27fe91a19..6f1e1b9a7 100644 --- a/packages/stream_video_flutter/android/src/main/kotlin/io/getstream/video/flutter/stream_video_flutter/service/notification/StreamNotificationBuilderImpl.kt +++ b/packages/stream_video_flutter/android/src/main/kotlin/io/getstream/video/flutter/stream_video_flutter/service/notification/StreamNotificationBuilderImpl.kt @@ -145,7 +145,8 @@ internal class StreamNotificationBuilderImpl( if (!contentText.isNullOrEmpty()) { setContentText(contentText) } - priority = NotificationCompat.PRIORITY_LOW + + priority = NotificationCompat.PRIORITY_MAX addAction(actionBuilder.createCancelAction(getNotificationId(), payload.callCid, type)) @@ -178,7 +179,7 @@ internal class StreamNotificationBuilderImpl( setSilent(true) setSound(null) - priority = NotificationCompat.PRIORITY_LOW + priority = NotificationCompat.PRIORITY_MAX val notificationLargeLayout = NotificationLayout( context, R.layout.stream_notification_large, @@ -224,11 +225,14 @@ internal class StreamNotificationBuilderImpl( @RequiresApi(Build.VERSION_CODES.O) private fun getDefaultNotificationChannel(context: Context): (() -> NotificationChannel) { return { - NotificationChannel( + val channel = NotificationChannel( context.getString(R.string.stream_call_notification_channel_id), context.getString(R.string.stream_call_notification_channel_name), - NotificationManager.IMPORTANCE_DEFAULT, + NotificationManager.IMPORTANCE_HIGH ) + + channel.lockscreenVisibility = NotificationCompat.VISIBILITY_PUBLIC + channel } } @@ -306,4 +310,4 @@ class NotificationLayout( setViewVisibility(R.id.avatar, View.VISIBLE) } -} \ No newline at end of file +}