π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Revert "[mob][photos] Fix BG task not getting killed"
Ashil0969ded02af0
diff --git a/mobile/lib/main.dart b/mobile/lib/main.dartindex d4f683a149..c9659606fb 100644--- a/mobile/lib/main.dart+++ b/mobile/lib/main.dart@@ -1,6 +1,5 @@import 'dart:async';import 'dart:io';-import "dart:isolate";import "package:adaptive_theme/adaptive_theme.dart";import 'package:background_fetch/background_fetch.dart';@@ -364,15 +363,10 @@ Future<void> _killBGTask([String? taskId]) async {DateTime.now().microsecondsSinceEpoch,);final prefs = await SharedPreferences.getInstance();-await prefs.remove(kLastBGTaskHeartBeatTime);if (taskId != null) {BackgroundFetch.finish(taskId);}-- ///Band aid for background process not getting killed. Should migrate to using- ///workmanager instead of background_fetch.- Isolate.current.kill();}Future<void> _firebaseMessagingBackgroundHandler(RemoteMessage message) async {