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).
479- App Store Connect privacy label: Location, Coarse Location, App 479- App Store Connect privacy label: Location, Coarse Location, App
480 Functionality, not linked, not used for tracking (WeatherKit). 480 Functionality, not linked, not used for tracking (WeatherKit).
481- WeatherKit: check a real forecast on a signed device build. 481- WeatherKit: check a real forecast on a signed device build.
482- Launch push: Broadcast capability for =sh.krz.moonrise=; run the channel 482- Launch push: Broadcast capability for =sh.krz.moonrise=. The channel
483 trial in =spikes/apns-channels/README.org=; then either set 483 trial passed on 2026-10-21 (sandbox and production returned 200 from a
484 =APNS_MANAGE_CHANNELS= or fill the pool with =server/scripts/channels.ts=; 484 Worker), so the Worker creates channels itself (=APNS_MANAGE_CHANNELS=).
485 apply =0005_launch_channels.sql= on the remote D1 before deploying.
486- Device checks: Siri phrases, Live Activity layouts (Lock Screen, Dynamic 485- Device checks: Siri phrases, Live Activity layouts (Lock Screen, Dynamic
487 Island, Watch, CarPlay, StandBy), eclipse rehearsal with the silent 486 Island, Watch, CarPlay, StandBy), eclipse rehearsal with the silent
488 switch on, sky draw time and pointing. 487 switch on, sky draw time and pointing.
server/wrangler.jsonc +2 −1
@@ -14,7 +14,8 @@
14 "vars": { 14 "vars": {
15 "APNS_KEY_ID": "644XS4F2RG", 15 "APNS_KEY_ID": "644XS4F2RG",
16 "APNS_TEAM_ID": "ZCNAX3VL9D", 16 "APNS_TEAM_ID": "ZCNAX3VL9D",
17 "APNS_TOPIC": "sh.krz.moonrise" 17 "APNS_TOPIC": "sh.krz.moonrise",
18 "APNS_MANAGE_CHANNELS": "1"
18 } 19 }
19 // Secret: APNS_KEY (.p8 contents), set with `wrangler secret put APNS_KEY`. 20 // Secret: APNS_KEY (.p8 contents), set with `wrangler secret put APNS_KEY`.
20} 21}