更新:我通过设置解决了
.setGroupAlertBehavior(GROUP_ALERT_SUMMARY)
我正在创建类似
的通知new NotificationCompat.Builder(context, channel_id)
.setColor(..)
.setContentTitle(..)
.setSubText(..)
.setSmallIcon(..)
.setAutoCancel(true)
.setGroup(groupKey)
.setGroupSummary(true)
.setContentIntent(resultPendingIntent)
.build();
在 8.0 上,某些设备会看到每个通知都有双重通知声音。 There is a blog post around this
有些应用似乎找到了解决问题的方法?帮助!
最佳答案
.setGroupAlertBehavior(GROUP_ALERT_SUMMARY)
关于Android 8.0 双重通知音效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46653731/