Web service times out with default setting for "suspend execution for cached apps" (developer option, separate to power settings). #3275
Unanswered
tom-a-horrocks
asked this question in
Bug reports
Replies: 1 comment 4 replies
-
OMG I was looking for a solution to this problem for one year... thank you SO MUCH!!! |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have discovered (troubleshooting here) that requests to the xDrip Web Service will time out if xDrip+ hasn't been in the foreground recently. I have disabled battery optimisations for Dexcom app, Xdrip+ app, system bluetooth app, and have also disabled adaptive battery. I've only been able to reproduce this problem on a Pixel 7 (Android 14); the web service worked fine on a Cubot KingKong Mini 3 (Android 12).
Steps to reproduce
Configuration
UPDATE
It turns out Pixel 7 suspends the execution of cached (background) apps, which was preventing the web service from responding. This can be disabled globally by changing the developer option below. Maybe there's a way to fix this in the app that doesn't require changing a global setting?
That mostly fixed the problem, but it was still a little flakey. I found that resetting my launcher helped with this... maybe the Android 13 to 14 update was not totally clean. To reset the launcher, do the following. Warning: this resets your homescreen apps and widgets to factory, so you'll have to make all your shortcuts etc again.
Beta Was this translation helpful? Give feedback.
All reactions