1常驻通知,去除图标圆点

This commit is contained in:
远方夕阳 2020-08-16 16:14:58 +08:00
parent 5e61c481f8
commit bdddbfc0e9
2 changed files with 1 additions and 0 deletions

View File

@ -270,6 +270,7 @@ public class CIMPushService extends Service {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O && notificationManager.getNotificationChannel(PERSIST_NTC_CHANNEL_ID) == null) {
NotificationChannel channel = new NotificationChannel(PERSIST_NTC_CHANNEL_ID,channelName, NotificationManager.IMPORTANCE_DEFAULT);
channel.enableLights(false);
channel.setShowBadge(false);
channel.enableVibration(false);
channel.setSound(null, null);
notificationManager.createNotificationChannel(channel);