Gateway: APNs topic is the watch app's bundle ID
This commit is contained in:
1 parent
f772f4e4c4
commit
69858d4719
3 files changed
+5
-3
No files matched your search
+3
-1
@@ -200,4 +200,6 @@ they push to `docs/`.
|
|||||||
hosts).
|
hosts).
|
||||||
- CI deploys right away through a `wristcode` entry in `~/Server/ci-deploy.sh`, with Watchtower's
|
- CI deploys right away through a `wristcode` entry in `~/Server/ci-deploy.sh`, with Watchtower's
|
||||||
nightly pull as the fallback.
|
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
@@ -9,7 +9,7 @@ export interface ApnsConfig {
|
|||||||
teamId: string;
|
teamId: string;
|
||||||
/** The .p8 key's PEM text. */
|
/** The .p8 key's PEM text. */
|
||||||
key: string;
|
key: string;
|
||||||
/** The app's bundle ID. */
|
/** The watch app's bundle ID, which is its APNs topic. */
|
||||||
topic: string;
|
topic: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ export function loadConfig(env = process.env): Config {
|
|||||||
dbPath: env.WRISTCODE_DB ?? "data/wristcode.sqlite",
|
dbPath: env.WRISTCODE_DB ?? "data/wristcode.sqlite",
|
||||||
apns:
|
apns:
|
||||||
keyId && teamId && key
|
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,
|
: null,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user