Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Background sync on Android 12? #557

Closed
kr428 opened this issue Jun 10, 2022 · 5 comments
Closed

Background sync on Android 12? #557

kr428 opened this issue Jun 10, 2022 · 5 comments

Comments

@kr428
Copy link

kr428 commented Jun 10, 2022

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!

@yvolk
Copy link
Member

yvolk commented Jun 13, 2022

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...

@kr428
Copy link
Author

kr428 commented Jun 14, 2022

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

@yvolk
Copy link
Member

yvolk commented Dec 13, 2022

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

@kr428
Copy link
Author

kr428 commented Dec 23, 2022

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...?

@yvolk
Copy link
Member

yvolk commented Dec 23, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants