Post

Replies

Boosts

Views

Activity

WidgetKit + HealthKit Authorization
Let me start by saying, it wouldn't surprise me if all of the following is user error. 🙃 I'm trying to write a Widget using WidgetKit, where the widget extension itself is querying the HealthKit database. The host app definitely has HealthKit authorization, but I'm not clear how to do the same for the extension. I did add the requisite Info.plist entry in the widget extension, which cleared my first error. However, when I do my normal prompt for auth — the same one I use in my main app — I see this in the console: 2020-07-10 14:13:39.035757-0400 BodyWidgetExtension[988:337871] [auth] FAILED prompting authorization request to share ( ), read (     HKQuantityTypeIdentifierStepCount ) This leads me to think this isn't my fault, but, perhaps I've missed the plot. Any pointers/experience from anyone that's done this before? Thank you!
4
1
3.3k
Jul ’20