I have been unable to reproduce this problem myself, but so far 5 users have reported it. I did recently publish an app update that changed the target SDK from 27 to 28 which I
I had this issue. Turns out that the creation of the notification channel was at fault.
Wrong way:
val notifictionChannel = NotificationChannel(...)
notificationChannel.setSound(
RingtoneManager.getActualDefaultRingtoneUri(context, RingtoneManager.TYPE_NOTIFICATION),
AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_NOTIFICATION).build()
)
notificationManager.createNotificationChannel(notificationChannel)
Right way:
...
notificationChannel.setSound(
Settings.System.DEFAULT_NOTIFICATION_URI,
AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_NOTIFICATION).build()
)
...