Closed mbiebl closed 8 months ago
would switch from false to true. This is not the case though.
Only if there is no internet connectivity at all. Maybe you turned wifi off, but left the metered connection on? Also check the newly introduced account setting "VPN connectivity", in case you use a VPN.
It works for me. When I start a sync without internect connection (wifi and metered turned off) isSyncPending
turns from false to true.
If you believe there is a bug on your side, can you provide exact steps to reproduce?
Hm, now I can't reproduce the problem anymore either. Closing as a fluke. Sorry for the noise.
Ah, I guess what happened is that I scheduled multiple sync requests and missed the first one. Subsequent sync requests did not update the isSyncPending state
If you run
SyncWorker.enqueueAllAuthorities(...)
with WiFi turned off, I would expect thatwould switch from false to true. This is not the case though.
This is surprising, since
WorkInfo.State.ENQUEUED
saysAm I missing something obvious here?