Sunday, August 14, 2022
HomeiOS Developmentios - WeatherKit with watchOS ensuing with 401

ios – WeatherKit with watchOS ensuing with 401


My guess the problem is that the iOS app is com.instance.MyApp and the bundle id for the watchOS app is com.instance.MyApp.watchkitapp, so WeatherKit works completely on the iOS app after registering bundleID and request WeatherKit service.
Nevertheless it doesn’t work on watchOS, giving me 401 errors. I assume it’s due to the bundleID, however possibly one thing else.

2022-06-25 08:58:58.999485-0500 JumpLog Watch App[72341:1201484] [WK_Geocode] did not reverse geocode. location=CLLocationCoordinate2D(latitude: 37.62471885, longitude: -122.42857813), error=reverseGeocodeFailed(Error Area=NMDeviceConnectionErrorDomain Code=2 "Timed out." UserInfo={NSDescription=Timed out.})
2022-06-25 08:58:59.019561-0500 JumpLog Watch App[72341:1201484] [Database] Trying to invalidate an assertion that's not legitimate
2022-06-25 08:58:59.724802-0500 JumpLog Watch App[72341:1198856] [WeatherService] Encountered an error when fetching climate knowledge subset; location=<+37.62471885,-122.42857813> +/- 5.00m (velocity 34.21 mps / course 332.23) @ 6/25/22, 8:56:58 AM Central Daylight Time,  error=invalidJWTResponse(Non-compulsory(<NSHTTPURLResponse: 0x60000394bf20> { URL: https://weather-data.apple.com/v2/token } { Standing Code: 401, Headers {
    Connection =     (
        shut
    );
    "Content material-Size" =     (
        0
    );
    Date =     (
        "Sat, 25 Jun 2022 13:58:59 GMT"
    );
    Server =     (
        Apple
    );
    "Strict-Transport-Safety" =     (
        "max-age=31536000; includeSubdomains"
    );
    "X-Apple-Origin" =     (
        "8961098f-b238-3714-ba44-5b569c861456"
    );
    "X-Cache" =     (
        "TCP_MISS from a23-33-47-144.deploy.akamaitechnologies.com (AkamaiGHost/10.8.2-41841244) (-)"
    );
    "X-Content material-Kind-Choices" =     (
        nosniff
    );
    "X-Body-Choices" =     (
        SAMEORIGIN
    );
    "X-REQUEST-ID" =     (
        "2076edab-2346-4a50-83c1-e62f46aab9eb"
    );
    "X-XSS-Safety" =     (
        "1; mode=block"
    );
} }))

And I’ve tried to register bundle id like com.instance.MyApp.watchkitapp with my developer account, that ends in error:

An attribute within the offered entity has invalid worth

An App ID with Identifier 'com.instance.MyApp.watchkitapp' is just not out there. Please enter a special string.

P.S. The true bundle ID is completely different, particular for my app.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments