set an Event category to notifications, maybe they will become more reliable
This commit is contained in:
parent
008508041d
commit
eb02b5dd99
|
@ -243,6 +243,7 @@ fun Context.getNotification(pendingIntent: PendingIntent, event: Event, content:
|
||||||
.setContentIntent(pendingIntent)
|
.setContentIntent(pendingIntent)
|
||||||
.setPriority(NotificationCompat.PRIORITY_MAX)
|
.setPriority(NotificationCompat.PRIORITY_MAX)
|
||||||
.setDefaults(Notification.DEFAULT_LIGHTS)
|
.setDefaults(Notification.DEFAULT_LIGHTS)
|
||||||
|
.setCategory(Notification.CATEGORY_EVENT)
|
||||||
.setAutoCancel(true)
|
.setAutoCancel(true)
|
||||||
.setSound(Uri.parse(soundUri), config.reminderAudioStream)
|
.setSound(Uri.parse(soundUri), config.reminderAudioStream)
|
||||||
.setChannelId(channelId)
|
.setChannelId(channelId)
|
||||||
|
|
Loading…
Reference in New Issue