Has anyone experienced their widget getting "stuck" frequently?
The widget I am developing often stops updating after a while. The widget fails to wake and call the timeline method after the reload date passes (no matter how long I wait) and also fails to update when the update method is called from the parent app. It appears as if the widget has just completely stopped responding.
If I add another copy of the widget to the Home Screen, that one will update just fine for a while - but the old one stays the same and doesn’t update along with the new one.
(Note that this only happens on an actual device. On the simulator, the widgets continue to update flawlessly.)
I’ve also experienced issues with the widget never updating its view after it’s been added to the Home Screen. The timeline method gets called, but the widget never updates its appearance on screen.
And finally, I often see this issue happen during debugging - I’ll run the app using the WidgetKit scheme, add the widget to the Home Screen, and everything works fine - but when I run it again, the widget appears to get “stuck” and won’t start working again until I remove the widget and add it back again or restart the entire device.
I don't see any crash logs or messages in the debugger indicating I've used up too much processing time or something like that, so I'm a bit puzzled as to why this is happening and what I can do to fix it. Hopefully it's just a beta bug that will be resolved in future seeds.
Filed as FB8210627.
The widget I am developing often stops updating after a while. The widget fails to wake and call the timeline method after the reload date passes (no matter how long I wait) and also fails to update when the update method is called from the parent app. It appears as if the widget has just completely stopped responding.
If I add another copy of the widget to the Home Screen, that one will update just fine for a while - but the old one stays the same and doesn’t update along with the new one.
(Note that this only happens on an actual device. On the simulator, the widgets continue to update flawlessly.)
I’ve also experienced issues with the widget never updating its view after it’s been added to the Home Screen. The timeline method gets called, but the widget never updates its appearance on screen.
And finally, I often see this issue happen during debugging - I’ll run the app using the WidgetKit scheme, add the widget to the Home Screen, and everything works fine - but when I run it again, the widget appears to get “stuck” and won’t start working again until I remove the widget and add it back again or restart the entire device.
I don't see any crash logs or messages in the debugger indicating I've used up too much processing time or something like that, so I'm a bit puzzled as to why this is happening and what I can do to fix it. Hopefully it's just a beta bug that will be resolved in future seeds.
Filed as FB8210627.