Java 清除刷卡推送通知不起作用

Java 清除刷卡推送通知不起作用,java,android,push-notification,Java,Android,Push Notification,我创建推送通知。问题发生在我使用安卓9手机时,当我刷卡时,通知是静态的且不清晰。这是我的通知生成器 NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this) .setSmallIcon(icono) .setColor(getResources().getColor(R.color.colorAccent1))

我创建推送通知。问题发生在我使用安卓9手机时,当我刷卡时,通知是静态的且不清晰。这是我的通知生成器

NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this)
                .setSmallIcon(icono)
                .setColor(getResources().getColor(R.color.colorAccent1))
                .setVibrate(new long[]{2000, 2000, 2000, 2000, 2000})
                .setLights(Color.RED, 3000, 3000)
                .setContentTitle(Ititle)
                .setSmallIcon(R.mipmap.ic_launcher)
                .setContentText(iBody)
                .setAutoCancel(true)
                .setOngoing(false)
                .setSound(soundUri)
                .setContentIntent(pendingIntent);