Post

Replies

Boosts

Views

Activity

Reply to When does AccountNotFound get returned from "Get All Subscription Statuses"?
Thanks for your reply! I’m interpreting what you’ve said to mean “the user’s App Store account has been deleted.” None in particular seemed suspicious, I was just a little surprised at the incidence rate for this error code. Among our receipts is slightly more than 1/1000, which seems a little high to me. But frankly the major confusion was I had 21010 down as “unauthorized” rather than “account not found” and I thought the difference in error code was strange. Thanks @App Store Commerce Engineer
Aug ’23
Reply to TN3151: Choosing the right networking API
@eskimo Thanks for the detailed answer! I feel like I understand the tradeoffs now. I appreciate that Apple has internal style to stick to & whatnot, but in my personal opinion this bullet point would much enhance the technote: URLSession is very much focused on HTTP, and WebSocket isn’t an HTTP-like protocol. While it uses HTTP under the covers, the actual WebSocket protocol is a reliably bidirectional connection with message framing. Those semantics are a much better match for NWConnection than URLSession. That really cleared up for me why it was a generally good starting point, rather than "start with URLSession & use NWConnection when you need something special". One last bit if you don’t mind — is there official documentation/tutorial/walkthroughs/etc. that explain making a WebSocket connection with NWConnection? It looks a bit more complicated to setup than URLSession & is definitely less familiar to me.
Jul ’23