Ok, thank you for the clarification! I'll map Dark Sky's precipAccumulation to WeatherKit's snowfallAmount.
Post
Replies
Boosts
Views
Activity
Just to clarify, I see https://developer.apple.com/weatherkit/get-started/ says that "precipAccumulation" from Dark Sky maps to "precipitationAmount" in WeatherKit. Is that correct, or are they describing different things? (I'm trying to map WeatherKit into a Dark Sky compatible format, so I want to make sure I'm using the most appropriate data point.)
Thank you!
Same issue here. I had a spike on Jan 26, then a few days of calm, and now a lower but consistent amount of auth errors since Jan 30.
That fixed things for me, thank you! (I'm not sure why it was working earlier without that step -- thanks so much for the help!)
This setup had been working well for me until yesterday, and now I'm unable to authenticate. Has anyone else experienced this issue as well?
I'm also seeing this issue becoming increasingly common, especially with Complications. I'm working around it like so:
func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {
if let location = manager.location as CLLocation? {
if location.coordinate.latitude == 0 {
return
}
locationManager.stopUpdatingLocation()
// do stuff with location
}
}
With the early return, didUpdateLocations might be called multiple times. In my testing, I always get a valid location after a few tries. I've been logging it, and usually didUpdateLocations only gets called twice, but I've seen it up to 5 times, all within the same second, before returning a valid location.