Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想让发送到我的颤振应用程序的 FCM 通知不可删除(当单击清除按钮或向左滑动通知时,用户无法清除它)。我搜索它,但没有关于如何使用颤振和 FCM 通知处理它的答案。
使通知不可移除......只需ongoing: true在flutter_local_notifications包装中制作
ongoing: true
flutter_local_notifications
AndroidNotificationDetails androidDetails = new AndroidNotificationDetails("channelId", notificationModel.title, notificationModel.body, ongoing: true);