1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-25 10:43:13 +02:00
immich/mobile/android
Fynn Petersen-Frey 4fe535e5e8
improve Android background service reliability (#603)
This change greatly reduces the chance that a backup is not performed
when a new photo/video is made.
Instead of combining the change trigger and additonal constraints (wifi
or charging) into a single worker, these aspects are now separated.
Thus, it is now reliably possible to take pictures while the wifi
constraint is not satisfied and upload them hours/days later once
connected to wifi without taking a new photo.
As a positive side effect, this simplifies the error/retry handling
by directly leveraging Android's WorkManager without workarounds.
The separation also allows to notify the currently running BackupWorker
that new assets were added while backing up other assets to also upload
those newly added assets.
Further, a new tiny service checks if the app is killed, to reschedule
the content change worker and allow to detect the first new photo.
Bonus: The home screen now shows backup as enabled if background backup
is active.

* use separate worker/task for listening on changed/added assets
* use separate worker/task for performing the backup
* content observer worker enqueues backup worker on each new asset
* wifi/charging constraints only apply to backup worker
* backupworker is notified of assets added while running to re-run
* new service to catch app being killed to workaround WorkManager issue
2022-09-08 08:36:08 -05:00
..
app improve Android background service reliability (#603) 2022-09-08 08:36:08 -05:00
fastlane Up version for release 2022-09-07 15:26:29 -05:00
gradle/wrapper Optimize android's Gradle settings and clean up mobile source code (#240) 2022-06-22 00:23:35 -05:00
metadata/en-US Feature #120 #89 selective backup in app (#137) 2022-05-06 07:22:23 -05:00
.gitignore Added Code of conduct 2022-08-21 12:43:56 -07:00
build.gradle upload new photos in background with a service (#382) 2022-08-18 09:41:59 -05:00
Gemfile Implement CI/CD for Android (#48) 2022-03-13 22:10:07 -05:00
Gemfile.lock Implement CI/CD for Android (#48) 2022-03-13 22:10:07 -05:00
gradle.properties Add reverse geocoding and show asset location on map in detail view (#43) 2022-03-10 16:09:03 -06:00
settings.gradle Transfer repository from Gitlab 2022-02-03 10:06:44 -06:00