Debugging tips for a widget that isn't updating?

Does anyone have any debugging tips for a widget that isn’t updating? It’s a very weird situation… and I’m at a loss as to how to go about looking for an answer.

I have a widget that uses flows to get some information from a site (http) every 15 minutes. It updates itself with that information.

However on this one device I have it installed on… it doesn’t seem to update. I’ve cleared the KWGT cache. Everything works in the editor, the flow works when tested. The widget updates properly when the flow is manually triggered.

Weird thing #1: On this same device I have another widget, and it hits the same service (with a slightly different URL) - and it updates correctly. I’ve checked battery optimizations (off), persistent notification (on), etc. It’s just this one particular widget that refuses to update over time.

Weird thing #2: I have this exact same widget (exported the preset and imported) on 2 other devices, and it works fine. It updates every 15 minutes as it should. The other widget that hits the same service also works on the other 2 devices.

I’ve deleted the instance of the widget any number of times, and recreated it. I’ve re-imported the preset, etc. It’s just on this one device that it doesn’t update, and it’s the only widget that doesn’t update.

Are there logs or anything I can look at to see where the problem might lie?

Ok, I’ve verified that the flow is running, at least it is triggering properly on the cron job, and it is getting the correct information back from the web server. I added a cache busting parameter (so the URLs are always different). I basically get the flow to set a global variable, and expected the items that rely on that global to update. But it doesn’t when the flow is triggered by the cron. It does when the flow is triggered manually.

Plus it is still working on my other device.

So confused…

Hi @overbarg ,

Based on your trials on 1 device and 2 others, it looks like there’s a different configuration either in KWGT setting or phone’s setting.

You might be interested in checking these KWGT settings, it’s worth to try:

  • Advanced Options ➞ Global persistence : When the preset is saved, globals on screen should be overwritten
  • Advanced Options ➞ Update mode : Controls how often widget should update itself, this setting has impact on battery

.