mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
fix: local sync task never runs on iOS (#21491)
* fix: local sync task never runs on iOS * chore: rename ios register method * refactor from using dart callback to dart entrypoint + more logs * check if file exists before hashing * reschedule local sync task * chore: rename background worker logger * refactor: move file exists check inside repo --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
parent
4f7702c6bf
commit
674faf2e57
12 changed files with 218 additions and 152 deletions
|
|
@ -15,8 +15,7 @@ import 'package:pigeon/pigeon.dart';
|
|||
abstract class BackgroundWorkerFgHostApi {
|
||||
void enableSyncWorker();
|
||||
|
||||
// Enables the background upload service with the given callback handle
|
||||
void enableUploadWorker(int callbackHandle);
|
||||
void enableUploadWorker();
|
||||
|
||||
// Disables the background upload service
|
||||
void disableUploadWorker();
|
||||
|
|
@ -27,6 +26,8 @@ abstract class BackgroundWorkerBgHostApi {
|
|||
// Called from the background flutter engine when it has bootstrapped and established the
|
||||
// required platform channels to notify the native side to start the background upload
|
||||
void onInitialized();
|
||||
|
||||
void close();
|
||||
}
|
||||
|
||||
@FlutterApi()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue