Name the account a forwarded push was sent to #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/push-recipient-account"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Forwards the subscription's
accountas a top-levelaccountkey in the APNs payload, so a device signed in to several accounts can tell which one a tapped push belongs to before it navigates.Three edits:
store.RecordgainsAccount,store.Getselects and scans it, and the forwarded payload carries it when non-empty. Plus README documentation and two store tests.Verified on the relay box before merge:
go build/go vet/go test ./...green in thegolang:1.26-bookwormcontainer (no Go toolchain on the VPS).store.Openhas calledensureColumn(db, "account", "TEXT NOT NULL DEFAULT ''")since account scoping landed, so the new SELECT cannot fail on an older database. The live database already has the column.accountserialises as a top-level key alongsideaps, matching the README example. An empty account produces a byte-identical payload to today, so pre-account subscriptions are unaffected.<id>@<host>shape.🤖 Generated with Claude Code
https://claude.ai/code/session_01LLcABfRAqD95tvasuTibbn