1
0
mirror of https://github.com/immich-app/immich.git synced 2025-08-08 23:07:06 +02:00

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

* Check that server is reachable before starting backup work

* Fix iOS not starting background service

---------

Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
devjn
2024-04-23 20:50:34 +03:00
committed by GitHub
parent 661540c886
commit 0435de50f8
4 changed files with 113 additions and 31 deletions

View File

@ -171,9 +171,9 @@ class BackgroundServicePlugin: NSObject, FlutterPlugin {
return
}
// Requires 3 arguments in the array
guard args.count == 3 else {
print("Requires 3 arguments and received \(args.count)")
// Requires 3 or more arguments in the array
guard args.count >= 3 else {
print("Requires 3 or more arguments and received \(args.count)")
result(FlutterMethodNotImplemented)
return
}