Need this Apple
Post
Replies
Boosts
Views
Activity
I too am trying to find an answer to this question. I have also been trying to find a good solution refresh healthKit data after the device has been locked for quite some time and recently unlocked.
When testing your theory, I first added some debugging by populating the view with some mock data to verify that the location was indeed authorized. From what I can tell the location is either not authorized or never gets set in widgetKit. Thanks for your suggestion to use the background downloader though. Once I get past the getting the coordinates in the widget, I will look into this if its still failing.
You need to use appGroup container and write it there from the phone, and read it on the widget extension