Periodic updates of Glance widgets #322
Closed
jonmountjoy
started this conversation in
General
Replies: 1 comment
-
I upgraded to the latest version of the worker library:
and it then issued a useful statement to say my minimum refresh period was too small. The minimum was 15 minutes, and now it all works. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Has anyone had any success getting Glimpse widgets to auto-refresh?
Reading the Android docs I tried something like modifying my
ReceiverKit
class to include anonEnabled
to queue itself up for future update:and then created a
HomeWidgetWorker
pretty much following this code.When my widget starts, I do see the
onEnabled
being called (I set up the intents too), so theenqueue
does get called, which has aand I do see the
doWork
being called as a result of this. But it's only called once. The actual periodic requests are never made at all.If anyone has anything like this working, please let me know!
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions