mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00: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:
parent
661540c886
commit
0435de50f8
4 changed files with 113 additions and 31 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue