krz/moonrise

Night-sky companion for iPhone, Apple Watch and Vision Pro: what's up tonight, the Moon, planets, launches and missions, and a Library of the solar system. SwiftUI app with a Cloudflare Workers backend. astronomy cloudflare-workers ios night-sky space swiftui visionos watchos

Commit 93912993b4

93912993b4d7f7da5f64aa87b5a942d684f73034

parent: 0b974e0e15

Unsigned

cmc <hello@cleberg.net> · 2026-10-21 00:27 UTC

Worker creates launch channels itself (!72)

Sets APNS_MANAGE_CHANNELS=1 in server/wrangler.jsonc. The spikes/apns-channels trial got 200 {"channels":[]} from both the sandbox and production management hosts. Server tests (40) pass. PLAN.org's before-publishing item updated.

Layout: unified · split

PLAN.org +3 −4
@@ -479,10 +479,9 @@ Sky, System, Sun, Launches, Library core (above).
479479- App Store Connect privacy label: Location, Coarse Location, App
480480 Functionality, not linked, not used for tracking (WeatherKit).
481481- WeatherKit: check a real forecast on a signed device build.
482- Launch push: Broadcast capability for =sh.krz.moonrise=; run the channel
483 trial in =spikes/apns-channels/README.org=; then either set
484 =APNS_MANAGE_CHANNELS= or fill the pool with =server/scripts/channels.ts=;
485 apply =0005_launch_channels.sql= on the remote D1 before deploying.
482- Launch push: Broadcast capability for =sh.krz.moonrise=. The channel
483 trial passed on 2026-10-21 (sandbox and production returned 200 from a
484 Worker), so the Worker creates channels itself (=APNS_MANAGE_CHANNELS=).
486485- Device checks: Siri phrases, Live Activity layouts (Lock Screen, Dynamic
487486 Island, Watch, CarPlay, StandBy), eclipse rehearsal with the silent
488487 switch on, sky draw time and pointing.
server/wrangler.jsonc +2 −1
@@ -14,7 +14,8 @@
1414 "vars": {
1515 "APNS_KEY_ID": "644XS4F2RG",
1616 "APNS_TEAM_ID": "ZCNAX3VL9D",
17 "APNS_TOPIC": "sh.krz.moonrise"
17 "APNS_TOPIC": "sh.krz.moonrise",
18 "APNS_MANAGE_CHANNELS": "1"
1819 }
1920 // Secret: APNS_KEY (.p8 contents), set with `wrangler secret put APNS_KEY`.
2021}