-
Notifications
You must be signed in to change notification settings - Fork 9
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
Investigate ambient mode delayed HTTP calls #6
Comments
Relevant logs from device:
My reading of this is that our background thread lives and queues requests, but that Volley or the OS is blocking the HTTP calls in ambient mode. It's odd that volley itself logs the request as slow:
Presumably |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The blood glucose service doesn't do anything to change its behaviour in ambient mode - it runs on a background thread, conservatively adding requests via Volley when it's clear it's worth trying to retrieve new data.
On my Ticwatch E with always on enabled, it's evident that we end up with stale data after periods of ambient mode, after touching the screen causing an ambient mode exit we see updated data after a small pause.
The text was updated successfully, but these errors were encountered: