Skip to content

feat(android): report guidance to Android Auto's NavigationManager - #22

Merged
mfazekas merged 1 commit into
mainfrom
feat/android-auto-navigation-manager
Oct 28, 2026
Merged

mfazekas merged 1 commit into
mainfrom
feat/android-auto-navigation-manager

Conversation

@mfazekas

Copy link
Copy Markdown
Contributor

Android Auto didn't know when the app was navigating, which the Android for Cars quality guidelines require for navigation apps. The car session now calls navigationStarted/navigationEnded as the shared session starts and stops guidance. It stops guidance when the host calls onStopNavigation, and JS sees that as camera state idle, the same as ending a trip on CarPlay. It simulates guidance after onAutoDriveEnabled, which Play review uses. The car screen also clears its surface callback on destroy.

Follow-up to finding 11 of the #17 review. updateTrip and maneuver/travel estimates in the NavigationTemplate aren't part of this PR.

Compiles in the Expo example (debug). Not yet tested on the Desktop Head Unit, which isn't installed on the machine this was built on.

Calls navigationStarted/navigationEnded as the shared session guides and stops,
stops guidance on the host's onStopNavigation, simulates guidance under auto drive,
and clears the surface callback when the car screen is destroyed.
@mfazekas
mfazekas marked this pull request as ready for review October 28, 2026 01:49
@mfazekas
mfazekas merged commit fe71467 into main Oct 28, 2026
6 checks passed
@mfazekas mfazekas mentioned this pull request Oct 28, 2026
mfazekas added a commit that referenced this pull request Oct 28, 2026
…modules

- Android Auto reports guidance to NavigationManager since #22.
- Xcode 26 explicit modules start with React Native 0.87 (rnmapbox/maps#4376).
- yarn.lock for the react-native peer range.
mfazekas added a commit that referenced this pull request Oct 28, 2026
* docs: newcomer and DX fixes for 0.1.0

- README: 0.1.0 compatibility row, pre-1.0 banner, pinned @rnmapbox/maps
  install, location permission section, "Why" bullets and a migration
  table for the homee and pawan-pk packages.
- Example: request Android location permission before device-location
  guidance on the RNNavigationView screen.
- Plugin: warn at prebuild when the @rnmapbox/maps plugin's
  RNMapboxMapsVersion doesn't match the Navigation SDK's Maps version.
- package.json: react-native peer >=0.79 (as @rnmapbox/maps), more keywords.
- Feature request issue template, replacing the link to the disabled
  Discussions ideas category.

* docs: Android Auto NavigationManager and React Native 0.87+ explicit modules

- Android Auto reports guidance to NavigationManager since #22.
- Xcode 26 explicit modules start with React Native 0.87 (rnmapbox/maps#4376).
- yarn.lock for the react-native peer range.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant