@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.
Post
Replies
Boosts
Views
Activity
That makes a lot of sense and got me straightened out; thank you!
This has been filed as feedback FB7907616.
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?