Posts

Post not yet marked as solved
3 Replies
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
Post not yet marked as solved
5 Replies
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.
Post not yet marked as solved
2 Replies
This is what it looks like. I'm running it in Portrait
Post not yet marked as solved
12 Replies
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!
Post not yet marked as solved
12 Replies
I'm not doing audio streaming. I understand I can't do low level network programming on WatchOS, but the post you linked to said to use NSURLSession, which is what I'm trying to use. I was able to get it to communicate with the test server URL I posted, but what is different about my server that it's not allowing the connection? Thanks
Post not yet marked as solved
12 Replies
I was able to connect to 'wss://echo.websocket.org' in my WatchOS app and send/receive messages with the code above. What is different about my website that it's not letting me connect? Thanks
Post not yet marked as solved
12 Replies
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];
Post not yet marked as solved
12 Replies
I'm pretty sure the answer is Yes to both of those questions, but I'm not 100%. Would rather not post the URL publicly, can I email it to you at the address in your post? Thanks!
Post not yet marked as solved
6 Replies
I am using an actual bundle identifier. I ran that command, what am I looking for exactly? My name shows up proprly for every field that is related to a name. I removed the item from Accessibility and added it back and it still doesn't show a nameThanks!