|
|
@@ -170,7 +170,7 @@ public class SheepJpushReceiver extends BroadcastReceiver {
|
|
|
.setDefaults(NotificationCompat.DEFAULT_ALL);
|
|
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
|
|
notificationBuilder.setContentTitle(title)//第一行内容 通常作为通知栏标题
|
|
|
- .setOngoing(true)//禁止滑动删除
|
|
|
+// .setOngoing(true)//禁止滑动删除
|
|
|
.setContentText(msg);//第二行内容 通常是通知正文
|
|
|
NotificationChannel channel = new NotificationChannel(String.valueOf(msgId), appName, NotificationManager.IMPORTANCE_HIGH);
|
|
|
channel.canBypassDnd();//是否可以绕过请勿打扰模式
|