mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-02-02 16:14:21 +01:00
fix: Workaround for iOS not removing the app badge
This commit is contained in:
parent
6f8ad27420
commit
d10d23ac62
@ -2,6 +2,7 @@ import 'dart:async';
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:adaptive_dialog/adaptive_dialog.dart';
|
||||
import 'package:flutter_app_badger/flutter_app_badger.dart';
|
||||
|
||||
import 'package:matrix/matrix.dart';
|
||||
import 'package:file_picker_cross/file_picker_cross.dart';
|
||||
@ -200,6 +201,7 @@ class ChatController extends State<Chat> {
|
||||
(r.notificationCount != null && r.notificationCount > 0))) {
|
||||
// ignore: unawaited_futures
|
||||
FlutterLocalNotificationsPlugin().cancelAll();
|
||||
FlutterAppBadger.removeBadge();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -323,6 +323,13 @@ packages:
|
||||
description: flutter
|
||||
source: sdk
|
||||
version: "0.0.0"
|
||||
flutter_app_badger:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: flutter_app_badger
|
||||
url: "https://pub.dartlang.org"
|
||||
source: hosted
|
||||
version: "1.2.0"
|
||||
flutter_app_lock:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
|
@ -23,6 +23,7 @@ dependencies:
|
||||
file_picker_cross: ^4.4.2
|
||||
flutter:
|
||||
sdk: flutter
|
||||
flutter_app_badger: ^1.2.0
|
||||
flutter_app_lock: ^1.5.0
|
||||
flutter_blurhash: ^0.6.0
|
||||
flutter_cache_manager: ^3.1.2
|
||||
|
Loading…
Reference in New Issue
Block a user