mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-15 06:28:41 +00:00
fix push notification remove on ios
This commit is contained in:
parent
f3d53158be
commit
c6198be2c4
1 changed files with 5 additions and 1 deletions
|
|
@ -164,7 +164,11 @@ class _MediaViewerViewState extends State<MediaViewerView> {
|
|||
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(() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue