mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
fix: android background backups (#21795)
* upload using dart client * add connectivity api * respect backup network setting * comment as to why we need to wait for setForegroundAsync call * log assets skipped due to network constraint * dynamic spawning -> false --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com> Co-authored-by: Alex <alex.tran1502@gmail.com>
This commit is contained in:
parent
39c1ebf698
commit
722a464e23
22 changed files with 755 additions and 27 deletions
|
|
@ -14,6 +14,15 @@ class ServerInfoService {
|
|||
|
||||
const ServerInfoService(this._apiService);
|
||||
|
||||
Future<bool> ping() async {
|
||||
try {
|
||||
await _apiService.serverInfoApi.pingServer().timeout(const Duration(seconds: 5));
|
||||
return true;
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Future<ServerDiskInfo?> getDiskInfo() async {
|
||||
try {
|
||||
final dto = await _apiService.serverInfoApi.getStorage();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue