Repository navigation
feat(app): CarPlay station list, behind SUBWAVE_CARPLAY=1 - #15
Merged
Merged
Conversation
perminder-klair
force-pushed
the
feat/carplay
branch
4 times, most recently
from
November 27, 2026 18:38
833a66b to
051d562
Compare
…, Apple's scene manifest - PhoneSceneDelegate sizes the window ReactBoot made to its scene, re-sends a connection's URLs, activities and quick action through Expo's own handlers (open options, RCTLinkingManager fallback and dedupe), and refuses a second window. - With the flag on, the manifest follows Apple's CarPlay one: UIApplicationSupportsMultipleScenes true and UISceneClassName CPTemplateApplicationScene. On iPad that allows a second window, which one React tree can't serve, so the phone delegate destroys it. - OnAirFlag (_shared) is the one reader of the on-air flag, for CarPlay and the tune control, with matched-by-string notes on both sides. ReactBoot clears a flag a killed app left set. - setStations posts SubwaveStationsChanged; StationIndex.reindex no longer doubles as CarPlay's signal. - A failed like from the CarPlay heart shows the bridge's message. - withCarPlay copies expo-build-properties' manifest instead of editing its module-level object, renames enabled() to carPlayEnabled(), and scripts/carplay-plugin.test.ts checks the plist with the flag unset and set. - TESTING.md: the SDK 58 check for the delegate override, and the checklist.
perminder-klair
force-pushed
the
feat/carplay
branch
from
November 27, 2026 18:43
051d562 to
3b7778f
Compare
perminder-klair
marked this pull request as ready for review
November 27, 2026 18:44
This was referenced Nov 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
SUB/WAVE in the car's app grid: the saved stations as a list, a tap tunes in, then the system Now Playing screen with a heart. Swift draws, JS decides: a tap goes through the same bridge as "Hey Siri, tune in", so switching and tuning in stay in
src/intents/tune.ts, which hands the load to the mounted player and fits every wait to the deadline the bridge sends.Off unless
SUBWAVE_CARPLAY=1at prebuild. A device build can't be signed withcom.apple.developer.carplay-audiountil Apple grants it on the App ID. A signed Release device build with the flag on fails today (Entitlement com.apple.developer.carplay-audio not found and could not be included in profile). The entitlement request was submitted to Apple on 2026-11-27, and the flag stays off ineas.jsonuntil it's approved and enabled on the App ID.plugins/withCarPlay.jschanges the plist only when that variable is set, following Apple's CarPlay manifest:With multiple scenes on, iPadOS can open a second window of the app. One React tree plays one stream, so
SubwavePhoneSceneDelegateasks for that session's destruction instead of starting a second player.The on-air flag has one reader,
OnAirFlag(_shared/OnAirFlag.swift), shared by the CarPlay list and the tune control. The app-intents module postsSubwaveStationsChangedfromsetStationsandSubwaveOnAirChangedfromsetOnAir; both names are matched by string, with notes on each side.Evidence
npx expo prebuild -p ios --cleangives Expo's own scene manifest and no CarPlay entitlement, andscripts/carplay-plugin.test.tsruns the plugin and expo-build-properties inapp.json's order and checks the Info.plist and entitlements are the same as without the plugin. It also checks the flag-on manifest, thatapp.jsonlists the plugin first, and that the plugin leaves expo-build-properties' own manifest object alone (it used to edit it in place).SUBWAVE_CARPLAY=1 npx expo prebuild -p ios --cleanwrites the manifest and entitlement above. An Xcode 27 Release build for the simulator succeeds, and a normal launch on the iPhone 18 Pro simulator fills the screen in one window.npm run lintclean (one existing warning inonboarding.tsx);npm test593 pass, 5 skipped.docs/TESTING.md. That's why this is a draft.Merge Danger
Door: two-way
Blast Radius: none for store builds while the flag is off
The Swift compiles into every build, but nothing names its classes unless the plugin is on. What does run with the flag off:
setStationspostsSubwaveStationsChangedandsetOnAirpostsSubwaveOnAirChanged, in-process notifications that nothing observes.OnAirFlag: same suite, same key.SubwaveIntentBridgedrops its iOS 17 availability attribute; it uses nothing newer than the 16.4 deployment target.All native, so it ships in a binary, not over the air.