diff --git a/lib/src/views/chats/media_viewer.view.dart b/lib/src/views/chats/media_viewer.view.dart index 7ebe066..3bc30aa 100644 --- a/lib/src/views/chats/media_viewer.view.dart +++ b/lib/src/views/chats/media_viewer.view.dart @@ -164,7 +164,11 @@ class _MediaViewerViewState extends State { showSendTextMessageInput = false; }); - flutterLocalNotificationsPlugin.cancel(allMediaFiles.first.contactId); + if (Platform.isAndroid) { + flutterLocalNotificationsPlugin.cancel(allMediaFiles.first.contactId); + } else { + flutterLocalNotificationsPlugin.cancelAll(); + } if (allMediaFiles.first.downloadState != DownloadState.downloaded) { setState(() {