Revert "feat(android) Check server is reachable before starting background backup (#8989)" (#9324)

This reverts commit 0435de50f8.
This commit is contained in:
Alex 2024-05-09 12:16:53 -05:00 committed by GitHub
parent f9dc870166
commit 55031cc117
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 29 additions and 111 deletions

View file

@ -20,7 +20,6 @@ import 'package:immich_mobile/entities/store.entity.dart';
import 'package:immich_mobile/services/api.service.dart';
import 'package:immich_mobile/utils/backup_progress.dart';
import 'package:immich_mobile/utils/diff.dart';
import 'package:immich_mobile/utils/url_helper.dart';
import 'package:isar/isar.dart';
import 'package:path_provider_ios/path_provider_ios.dart';
import 'package:photo_manager/photo_manager.dart';
@ -69,10 +68,8 @@ class BackgroundService {
final callback = PluginUtilities.getCallbackHandle(_nativeEntry)!;
final String title =
"backup_background_service_default_notification".tr();
final bool ok = await _foregroundChannel.invokeMethod(
'enable',
[callback.toRawHandle(), title, immediate, getServerUrl()],
);
final bool ok = await _foregroundChannel
.invokeMethod('enable', [callback.toRawHandle(), title, immediate]);
return ok;
} catch (error) {
return false;