1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-24 10:37:28 +02:00
immich/mobile/lib/modules/home/ui
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
..
profile_drawer Add mobile dark mode and user setting (#468) 2022-08-15 18:53:30 -05:00
control_bottom_app_bar.dart Add mobile dark mode and user setting (#468) 2022-08-15 18:53:30 -05:00
daily_title_text.dart Add mobile dark mode and user setting (#468) 2022-08-15 18:53:30 -05:00
delete_diaglog.dart Internationalization (German) of the mobile app. (#246) 2022-07-07 13:40:54 -05:00
disable_multi_select_button.dart Add mobile dark mode and user setting (#468) 2022-08-15 18:53:30 -05:00
draggable_scrollbar.dart Refactor mobile to use OpenApi generated SDK (#336) 2022-07-13 07:23:48 -05:00
image_grid.dart Better caching for mobile (#521) 2022-08-29 22:44:43 -05:00
immich_sliver_appbar.dart improve Android background service reliability (#603) 2022-09-08 08:36:08 -05:00
monthly_title_text.dart Add mobile dark mode and user setting (#468) 2022-08-15 18:53:30 -05:00
thumbnail_image.dart Better caching for mobile (#521) 2022-08-29 22:44:43 -05:00