Hi there,
This is a known issue with Firebase right now and we're working on a fix that should be resolved shortly. You can follow along the process on GitHub: https://github.com/firebase/firebase-ios-sdk/issues/6520
If you run into any other issues, that's the best place to get a quick response!
Post
Replies
Boosts
Views
Activity
We've seen the same thing. I've put together a small repro here that includes the Xcode console message: https://gist.github.com/ryanwilson/fd5454a681eab32348ebc7119949182c
This comes down to two errors. One is logged:
2022-09-16 09:41:54.432645-0400 watchOS9Websockets Watch App[968:637613] Error getting network data status Error Domain=NSPOSIXErrorDomain Code=19 "Operation not supported by device"
The other is returned as an error when trying to use the send function on URLSessionWebSocketTask:
2022-09-16 09:41:54.445194-0400 watchOS9Websockets Watch App[968:637619] Task <7AA472C9-8847-4D10-B15D-EA7C970BE6F0>.<1> finished with error [-1009] Error Domain=NSURLErrorDomain Code=-1009 "The Internet connection appears to be offline." UserInfo={NSErrorFailingURLStringKey=https://ws.postman-echo.com/raw, NSErrorFailingURLKey=https://ws.postman-echo.com/raw, NSLocalizedDescription=The Internet connection appears to be offline., _NSURLErrorRelatedURLSessionTaskErrorKey=( "LocalWebSocketTask <7AA472C9-8847-4D10-B15D-EA7C970BE6F0>.<1>"), _NSURLErrorFailingURLSessionTaskErrorKey=LocalWebSocketTask <7AA472C9-8847-4D10-B15D-EA7C970BE6F0>.<1>}
As mentioned in the first post, this call succeeds on the simulator but fails on a real device running watchOS 9. This is affecting FirebaseDatabase from functioning properly on watchOS (https://github.com/firebase/firebase-ios-sdk/issues/10195).