googlemaps / googlemaps/react-native-navigation-sdk

[Bug]: Android Auto traffic/rerouting banners overlaping with NavigationTemplate TravelEstimate

Abierto
#604 2 comentarios 0 reacciones 2 asignados Reclamado por @illuminati1911 Ver en GitHub
priority: p2 type: bug
Lenguaje dominante
TypeScript
Estrellas
227
Forks
38
Merge medio
5 d 7 h
PR fusionados (30 d)
10

Descripción

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Description of the bug

Hello team,
First, thanks a lot for your amazing work, this library really works well.

Now I'm having kind of a bug on Android Auto that overlaps the native Google Map traffic notifications and the TravelEstimate in RoutingCard.

Image

I'm using NavigationTemplate with TravelEstimate

### React Native version

0.81.5

### React version

19.1.0

### Package version

0.14.1

### Native SDK versions

- [x] I haven't changed the version of the native SDKs

### React Native Doctor Output

✖ Validate packages against React Native Directory package metadata
The following issues were found when validating your dependencies against React Native Directory:
Unsupported on New Architecture: @googlemaps/react-native-navigation-sdk
No metadata available: expo-carplay, react-native-streetview
Advice:
Use libraries that are actively maintained and support the New Architecture. Find alternative libraries with https://reactnative.directory.
Add packages to expo.doctor.reactNativeDirectoryCheck.exclude in package.json to selectively skip validations, if the warning is not relevant.
Update React Native Directory to include metadata for unknown packages. Alternatively, set expo.doctor.reactNativeDirectoryCheck.listUnknownPackages in package.json to false to skip warnings about packages with no metadata, if the warning is not relevant.

✖ Check that packages match versions required by installed Expo SDK

🔧 Patch version mismatches
package expected found
expo ~54.0.34 54.0.33
expo-asset ~12.0.13 12.0.12
expo-dev-client ~6.0.21 6.0.20
expo-file-system ~19.0.22 19.0.21
expo-linking ~8.0.12 8.0.11
expo-updates ~29.0.17 29.0.16
expo-web-browser ~15.0.11 15.0.10

Changelogs:
- expo-asset → https://github.com/expo/expo/blob/sdk-54/packages/expo-asset/CHANGELOG.md
- expo-dev-client → https://github.com/expo/expo/blob/sdk-54/packages/expo-dev-client/CHANGELOG.md
- expo-file-system → https://github.com/expo/expo/blob/sdk-54/packages/expo-file-system/CHANGELOG.md
- expo-linking → https://github.com/expo/expo/blob/sdk-54/packages/expo-linking/CHANGELOG.md
- expo-updates → https://github.com/expo/expo/blob/sdk-54/packages/expo-updates/CHANGELOG.md
- expo-web-browser → https://github.com/expo/expo/blob/sdk-54/packages/expo-web-browser/CHANGELOG.md

7 packages out of date.
Advice:
Use 'npx expo install --check' to review and upgrade your dependencies.
To ignore specific packages, add them to "expo.install.exclude" in package.json. Learn more.

### Steps to reproduce

On Android Auto Side:
```
class ExampleAndroidAutoScreen(carContext: CarContext) : AndroidAutoBaseScreen(carContext) {
override fun onGetTemplate(): Template {
val navigationTemplateBuilder = NavigationTemplate.Builder()
val travelEstimate = TravelEstimate.Builder(
displayDistance,
displayTIme
)
.setRemainingTimeSeconds(remainingTime)
.build()
navigationTemplateBuilder.setDestinationTravelEstimate(travelEstimate)
return navigationTemplateBuilder.build()
}
}
```

On react-native side, just `navigationController?.startGuidance();`

And now to have the Google Map Traffic popup, you try to get some traffic or shorter itinerary available.

### Expected vs Actual Behavior

I would expect either:
- A way to hide TravelEstimate while the Traffic notification shows
- Traffic notification with a higher z-index than TravelEstimate

### Code Sample

Provided above

### Additional Context

_No response_

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.