0
私は.setAutoCancel(false) and .setOngoing(true);
を試しましたが、スワイプしても通知がクリアされるのはなぜですか?ここに私のコード - 私はよく通知がクリアされるのはなぜですか?
// Add as notification
NotificationManager manager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
Notification notif = builder.build();// add flag support
notif.flags |= Notification.FLAG_ONGOING_EVENT;
notif.flags |= Notification.FLAG_NO_CLEAR;
manager.notify(111, builder.build());
を試してみてください?アプリを閉じる..? – rafsanahmad007
ステータスバーからスワイプ –