andstatus icon indicating copy to clipboard operation
andstatus copied to clipboard

Background sync on Android 12?

Open kr428 opened this issue 3 years ago • 2 comments

Using Andstatus 58.05 on an Android 12 Samsung device, I noticed that (even though having sync set to fetch updates every 10 minutes) the app only syncs when it's actually running. Is that intended / expected behaviour? Also tried to disable battery optimization but that doesn't seem to change much. Thanks and best regards!

kr428 avatar Jun 10 '22 13:06 kr428

I need to check if AndStatus has special means to make Android allow its background syncing...

Meanwhile you may try to create a widget, so Android would refresh it periodically. And syncing should be initiated during such refreshes...

yvolk avatar Jun 13 '22 17:06 yvolk

Ok, thanks, will try whether that works for my purposes.

kr428 avatar Jun 14 '22 12:06 kr428

Hi @kr428 ! Recently I updated AndStatus to use JobScheduler instead of running a "Service" directly, and now background sync works on Android 13 as I see. Please check v.59.10+ #456

yvolk avatar Dec 13 '22 08:12 yvolk

Hi @kr428 ! Recently I updated AndStatus to use JobScheduler instead of running a "Service" directly, and now background sync works on Android 13 as I see. Please check v.59.10+ #456

Neat, thanks. Does it need any additional settings to work though? Because it doesn't seem to show a different behaviour here...?

kr428 avatar Dec 23 '22 14:12 kr428

No any additional settings. I checked logs on my Android 13 phone: AndStatus successfully synced a couple of times at night...

yvolk avatar Dec 23 '22 19:12 yvolk