Skip to content

web-vanilla: show driver alerts on iOS - #291

Open
ehoeve786 wants to merge 1 commit into
softwiredtech:mainfrom
ehoeve786:fix/vanilla-ios-alerts
Open

ehoeve786 wants to merge 1 commit into
softwiredtech:mainfrom
ehoeve786:fix/vanilla-ios-alerts

Conversation

@ehoeve786

Copy link
Copy Markdown
Collaborator

The driver-alert block read NativeCarState?.getSpeedCameraDistance?.(), but on iOS there is no NativeCarState global and optional chaining does not guard an undeclared identifier: it threw a ReferenceError, caught as "Failed to parse message" on every update, so the Changing lane alert never showed. Read window.NativeCarState (Android unchanged) and fall back to the fields iOS sends in the car state.

Testing

  • Not run on iOS yet.

🤖 Generated with Claude Code

The driver-alert block read NativeCarState?.getSpeedCameraDistance?.(), but
on iOS there is no NativeCarState global and optional chaining does not guard
an undeclared identifier: it threw a ReferenceError, caught as "Failed to
parse message" on every update, so the Changing lane alert never showed.
Read window.NativeCarState (Android unchanged) and fall back to the fields
iOS sends in the car state.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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