Gateway: APNs topic is the watch app's bundle ID
Gateway / check (push) Successful in 30s
Gateway / image (push) Successful in 46s

This commit is contained in:
gib committed 2026-11-01 10:09:26 -05:00
1 parent f772f4e4c4
commit 69858d4719
3 files changed
+5 -3

No files matched your search

+3 -1
View File
@@ -200,4 +200,6 @@ they push to `docs/`.
hosts).
- CI deploys right away through a `wristcode` entry in `~/Server/ci-deploy.sh`, with Watchtower's
nightly pull as the fallback.
- The bundle ID is `org.gbrown.wristcode`.
- The App Store record uses `org.gbrown.wristcode`, an empty iOS wrapper the App Store requires
around a watch-only app. The watch app itself is `org.gbrown.wristcode.watchkitapp`, which is also
its APNs topic.
+1 -1
View File
@@ -9,7 +9,7 @@ export interface ApnsConfig {
teamId: string;
/** The .p8 key's PEM text. */
key: string;
/** The app's bundle ID. */
/** The watch app's bundle ID, which is its APNs topic. */
topic: string;
}
+1 -1
View File
@@ -20,7 +20,7 @@ export function loadConfig(env = process.env): Config {
dbPath: env.WRISTCODE_DB ?? "data/wristcode.sqlite",
apns:
keyId && teamId && key
? { keyId, teamId, key: key.replace(/\\n/g, "\n"), topic: env.APNS_TOPIC ?? "org.gbrown.wristcode" }
? { keyId, teamId, key: key.replace(/\\n/g, "\n"), topic: env.APNS_TOPIC ?? "org.gbrown.wristcode.watchkitapp" }
: null,
};
}