diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 301267f..3bbc7f6 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -13,6 +13,8 @@ + + + diff --git a/notification/src/main/java/com/remax/notification/controller/NotificationTriggerController.kt b/notification/src/main/java/com/remax/notification/controller/NotificationTriggerController.kt index 391e4fd..a5dbc5c 100644 --- a/notification/src/main/java/com/remax/notification/controller/NotificationTriggerController.kt +++ b/notification/src/main/java/com/remax/notification/controller/NotificationTriggerController.kt @@ -87,6 +87,7 @@ object NotificationTriggerController { CHANNEL_ID_RESIDENT, CHANNEL_NAME_RESIDENT, NotificationManager.IMPORTANCE_HIGH ).apply { description = "for resident notification" + importance = NotificationManager.IMPORTANCE_HIGH setShowBadge(false) enableLights(false) enableVibration(false) @@ -351,7 +352,7 @@ object NotificationTriggerController { .setSmallIcon(R.drawable.ic_noti_icon) .setContentTitle(model.contentTitle) .setContentText(model.contentContent) - .setPriority(NotificationCompat.PRIORITY_HIGH) + .setPriority(NotificationCompat.PRIORITY_MAX) .setGroup(CHANNEL_ID_RESIDENT + model.notificationId) .setContentIntent(model.contentIntent).setCustomContentView(model.contentView) .setCustomBigContentView(model.contentView).setOngoing(true).setSilent(true).build()