set an Event category to notifications, maybe they will become more reliable

This commit is contained in:
tibbi 2018-12-04 23:44:24 +01:00
parent 008508041d
commit eb02b5dd99
1 changed files with 1 additions and 0 deletions

View File

@ -243,6 +243,7 @@ fun Context.getNotification(pendingIntent: PendingIntent, event: Event, content:
.setContentIntent(pendingIntent)
.setPriority(NotificationCompat.PRIORITY_MAX)
.setDefaults(Notification.DEFAULT_LIGHTS)
.setCategory(Notification.CATEGORY_EVENT)
.setAutoCancel(true)
.setSound(Uri.parse(soundUri), config.reminderAudioStream)
.setChannelId(channelId)