Post

Replies

Boosts

Views

Activity

Reply to WidgetKit + HealthKit Authorization
Update: Digging a little deeper, I now see more information about the error. This is... disheartening. Error Domain=com.apple.healthkit Code=111 "Unable to prompt for authorization using this type of extension; ignoring request." UserInfo={NSLocalizedDescription=Unable to prompt for authorization using this type of extension; ignoring request.} Is there any way to read HealthKit data from within a Widget?
Jul ’20
Reply to How to handle IPv6 link-local addresses in iOS 16?
@eskimo Can you expand on the following please? Seriously though, Bonjour makes this all much better because the remote peer has a mDNS host name, and you can pass that to URL rather than monkey around with IP addresses. How can I go from a NWBrowser.Result (or NWEndpoint) to a URL? I'm guessing it's simple/obvious, but I'm totally missing it. My particular use case is discovering a service on my local network — which in my case is returning an IPv6 link local address — and making a HTTP GET request to it. I'm at a loss how to construct a URL to do so.
Aug ’23