mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-15 14:48: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;
|
showSendTextMessageInput = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (Platform.isAndroid) {
|
||||||
flutterLocalNotificationsPlugin.cancel(allMediaFiles.first.contactId);
|
flutterLocalNotificationsPlugin.cancel(allMediaFiles.first.contactId);
|
||||||
|
} else {
|
||||||
|
flutterLocalNotificationsPlugin.cancelAll();
|
||||||
|
}
|
||||||
|
|
||||||
if (allMediaFiles.first.downloadState != DownloadState.downloaded) {
|
if (allMediaFiles.first.downloadState != DownloadState.downloaded) {
|
||||||
setState(() {
|
setState(() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue