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. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello,
Has anyone had any success getting Glimpse widgets to auto-refresh?
Reading the Android docs I tried something like modifying my
ReceiverKitclass to include anonEnabledto queue itself up for future update:and then created a
HomeWidgetWorkerpretty much following this code.When my widget starts, I do see the
onEnabledbeing called (I set up the intents too), so theenqueuedoes get called, which has aand I do see the
doWorkbeing 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.
All reactions