iOS app asks ipx in protobuf, not JSON (#469)
The badge's and CarPlay's reads (/api/feeds, the entry lists) and the player's writes (position, flags) now go as application/x-protobuf, the messages generated from crates/wire/proto by ios/scripts/proto.sh into Sources/Wire, committed so the build needs no protoc. SwiftProtobuf is pinned to the generator's version, 1.41.0, whose code refuses another. A read whose answer is not protobuf counts as no answer: a server from before #465 answers JSON whatever it is asked, and JSON can decode as a message of nothing, which would have set the badge to zero. The outbox keeps its stored key, `json`, for the body, and marks the new writes protobuf, so places saved offline by an older build are still sent, as JSON. Built for the simulator with Xcode 27.2; not run against a server. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -215,7 +215,8 @@ not know: `ipx_wire::negotiate`, a layer on each service's routes, converts the
|
||||
by its table of each route's messages (`WIRE` in `web.rs`, `api.rs` and play's `lib.rs`). A route
|
||||
added to a router goes in its table. Debug builds convert every JSON answer strictly, so the cargo
|
||||
tests and the browser suite answer `500` for a field missing from the `.proto` or a route missing
|
||||
from the table. Errors stay JSON.
|
||||
from the table. Errors stay JSON. The iOS app's own calls go in protobuf (#469), from Swift
|
||||
generated off the same files: a change to them is `sh ios/scripts/proto.sh` too.
|
||||
|
||||
Show notes are feed-supplied HTML from an untrusted source, sanitized with `ammonia` server-side
|
||||
before they reach the page.
|
||||
|
||||
Reference in New Issue
Block a user