Post

Replies

Boosts

Views

Activity

Reply to iOS WebSocket error: Default TLS Trust evaluation failed
I was trying it with NSURLSessionWebSocketTask on WatchOS. Looks like NWConnection isn't available in Objective-C. Would this work the same? NSURL * url = [NSURL URLWithString:@"wss://domain.com:443"]; NSURLSessionConfiguration *conf = [NSURLSessionConfiguration defaultSessionConfiguration]; NSURLSession * URLSession = [NSURLSession sessionWithConfiguration:conf delegate:self delegateQueue:nil]; webSocketTask = [URLSession webSocketTaskWithURL:url]; [webSocketTask resume];
May ’21
Reply to iOS WebSocket error: Default TLS Trust evaluation failed
Thanks for explaining, that saved me a lot of time debugging something that was never going to work. Is there any reason Apple hasn't added more robust networking to WatchKit? Either full fledged WebSockets and/or regular Sockets would make a world of difference. Our app is severely stifled by having to route our data through our iPhone app, both in terms of unusable performance and the fact that we can't make a standalone Watch app without it. We have so many cool features that we have been wanting to add since WatchOS 1 that still aren't possible because of the lack of sockets. Keeping my fingers crossed for WWDC 2021. 🤞🏻 Thanks for your help!
May ’21
Reply to Unable to upload Watch App screenshots to App Store
The javascript response I get when I add the image is: { "errors" : [ { "id" : "778abcb3-8491-443e-000c-c42366e703d0", "status" : "409", "code" : "STATE_ERROR", "title" : "The request cannot be fulfilled because of the state of another resource.", "detail" : "Screenshot Set with type APP_WATCH_SERIES_3 Already Exists!" } ] } Not sure what that means, I don't have any Apple Watch screen shots in the update.
Apr ’22
Reply to NSURLErrorNotConnectedToInternet after updating to Watch OS 9.0
I do both, but for testing purposes I am just running this: NSString* results = [NSString stringWithContentsOfURL:[NSURL URLWithString:@"https://google.com"] encoding: NSStringEncodingConversionAllowLossy error: nil]; NSLog(@"Content: %@", results); It works in the simulator and in OS 8, but not on my physical watch. Is there anything I need to add to my .plist file like I do for iOS? Thanks
Sep ’22