Implement background sync on Mobile
complete
Activity Feed
Sort by

Tom Raganowicz
complete

Tom Raganowicz
Initial version was released on Android, yesterday in a
1.12.2
release. (Please note additional orange/green icon at the top that configures background job).Further improvements will be carried out based on user's feedback.
iOS version of background sync was moved to separate task, as it's completely different implementation:

Tom Raganowicz
in progress

Tom Raganowicz
This is to let you know that we aim to work on that (and deliver initial Android version as a result) in this quarter.
In principle root access shouldn't be required, however on some vendor's devices this might be little trickier: https://dontkillmyapp.com/
There are lots of tricks and workarounds that can be implemented. Initially we'll start simple (https://developer.android.com/reference/androidx/work/PeriodicWorkRequest) and based on how it goes we'll be expanding as needed.
Foreground service is also an idea, however since Android 14, the use of FGS is narrowed down to specific uses:
We could use
short service
, but that only leaves us with 3 minutes time: https://developer.android.com/about/versions/14/changes/fgs-types-required#short-serviceIf any of you have examples of apps that done this right, please send us feedback, it will certainly help us to understand the real options we have.

Emmanuel Lopez
Tom Raganowicz
Alarm Clock Xtreme goes out of its way to tell you which settings to switch on to activate all the time, and even provides shortcuts to those setting pages.
There are a lot of invasive social media apps like TikTok that are constantly running in the background, but I'm not sure how those work.
There are less invasive social media apps that send notifications when something outside of them happen, like how DMs work.

Emmanuel Lopez
Root access should not be necessary to get this to work. Apps like alarm clocks get periodic behavior just fine WITHOUT root.
Also I very much need this feature and thought it to be included when I purchased my plan.

Exitium
Could you possibly use a persistent notification to trick the app into the foreground, this would allow it to run tasks on a schedule.
Furthermore, if it's too tedious to do with stock, would it be possible to have S3Drive as a magisk module, or use shizuku/root to enable background functionality?
+1 as I use S3Drive to move my call recordings into my Proton Drive automatically

Tom Raganowicz
planned