2017-10-09 88 views
1

我創建的通知像的Android 8.0雙通知聲音

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

一些應用程序似乎已經找到了解決此問題的方法?幫幫我!

+0

您是否找到任何解決方案 – Jinu

回答

-1

由於android O中引入了新的「通知通道」,因此您需要創建通知通道併爲其設置NotificationManager.IMPORTANCE_LOW

檢查this