WeatherKit API inaccessible for some users

Hi All, I’m puzzled by this issue: my app uses WeatherKit to fetch hourly UV-index and temperature forecasts. The same build, running on the latest iOS, succeeds on most devices but consistently fails on a few. Strangely, the paired Apple Watch version retrieves the data without problems. Could WeatherKit be applying per-user throttling? Any insight would be greatly appreciated.

More details, this is what the error is: Failed to generate jwt token for: com.apple.weatherkit.authservice with error: Error Domain=WeatherDaemon.WDSJWTAuthenticatorServiceListener.Errors Code=2 "(null) Couldn't read values in CFPrefsPlistSource<0x1294c0f00> (Domain: group.com.darkMatter.SafeTan, User: kCFPreferencesAnyUser, ByHost: Yes, Container: (null), Contents Need Refresh: Yes): Using kCFPreferencesAnyUser with a container is only allowed for System Containers, detaching from cfprefsd Again, this is just for a few select devices 🤔

More insights. Turns out my Apple Developer certificate expired today and was reissued, which must have triggered a regeneration of provisioning profiles and entitlements. Even though the entitlements are now correctly set in Xcode, the updated entitlement data may not have fully propagated to some of my iPhones that are configured in Developer Mode, especially the ones I haven’t rebooted or reinstalled the app on since the change. Other devices without Developer Mode enabled are still working fine. That's my hypothesis.

I'm also getting emails from users that my weatherkit-based app is failing to download data. I can run the same query on my own device and it works, so it must be a problem with their device in some way.

My dev certificate was reissued about 3 weeks ago, but the affected users installed the app in the last couple of days, so I wouldn't think it should be a problem.

Did you find a way to resolve this on your affected devices? I've asked my users to reboot their phones.

I'm also getting this error from users in the USA. In Canada everything still works, but I get the authentication error in some parts of the USA.

WeatherKit API inaccessible for some users
 
 
Q