Posts

Post not yet marked as solved
1 Replies
208 Views
Hello! I'm playing around with QUIC and Swift and using the Network framework. So far, the process has been really straightforward, but I noticed that I can't seem to get a handle on the stream with identifier 0. If I use NWConnection directly, I only have access to the first stream, which has the stream ID 0. This not what I want since I wanna use multiple streams. Following the documentation, I started using NWMultiplexGroup and starting a NWConnectionGroup with it. Everything works fine and I can get all streams that my backend service opens using NWMultiplexGroup's newConnectionHandler property. However, whenever backend sends a message on stream_id 0, none of my connections receive it. Looking around with connection.metadata(definition: NWProtocolQUIC.definition) as? NWProtocolQUIC.Metadata for each connection, I see that all streams are accounted for except stream 0. Then, using the NWConnectionGroup variant of the above connectionGroup.metadata(definition: NWProtocolQUIC.definition) as? NWProtocolQUIC.Metadata I see that the connection group itself has Stream ID 0. However, calling setReceiveHandler does nothing (it's never called, even when backend is sending messages) and when I attempt to send a message using NWConnectionGroup's -send method, a new stream is opened (instead of it being sent on stream ID 0). How can one get a handle on NWConnection for stream ID 0?
Posted Last updated
.
Post not yet marked as solved
1 Replies
841 Views
After updating, all my 3rd-party apps do not open. When I tap an icon, they just close. Happens to all apps. A reboot fixes it temporarily (sometimes)... Could this be a signature thing?
Posted Last updated
.
Post not yet marked as solved
3 Replies
2.7k Views
For SwiftUI, I found the .focusable() modifier very useful in making views focusable. However, once focused, I found *no* way of detecting a press on that view. I can find if the play/pause button was selected. I can find if the menu button was selected, but found no method to detect taps and long presses. Why are these not available on tvOS? Is there another way?
Posted Last updated
.
Post not yet marked as solved
0 Replies
815 Views
We have a small situation where a few users are violating the app's ToS and we must cancel their accounts. However, if we restrict access to the app's content, the user will still be paying via Apple IAP. How can we cancel the subscription for those ill-intentioned users?
Posted Last updated
.