Widgets are not reloaded when asked to while app is backgrounded

Hello,

I am working on an app that interacts with a BLE device. I am trying to create a widget that will show some state of that device and I do that by updating the latest state in an app group user defaults.
I have noticed that every time I call reloadTimelines while the app is foregrounded, it updates the widget perfectly, However nothing happens if I try the same thing while the app is backgrounded.
The main app target has background mode enabled with "App communicates using CoreBluetooth".
Is this behavior by design or is it possibly something that needs some further configuration (in the widget extension plist)? If it isn't, is this a known issue for the beta release or should I report a feedback ?

Best Regards,
Filip

Replies

I've noticed this too! https://developer.apple.com/forums/thread/652946

Right now I'm foregrounding the app every time I need to update the widget, which is not very nice of course.
Post not yet marked as solved Up vote reply of bouk Down vote reply of bouk