birkir / react-native-carplay

CarPlay with React Native
https://birkir.dev/react-native-carplay/
MIT License
647 stars 107 forks source link

Guidance on using POI and Navigation functions #26

Closed tomdye closed 3 years ago

tomdye commented 3 years ago

I'm trying to use the react-native-carplay package to add car play functionality to my navigation app. I'm struggling to get the map to work with panning / POI lists / overlays etc as there is little documentation of these features within your Readme. I have tried looking at your example app but the map and the related map features do not appear to be working here either.

Are you able to offer any guidance on what I may be doing wrong or perhaps fix the example app if that is incorrect?

Cheers.

Screenshot 2020-12-21 at 17 07 26 Screenshot 2020-12-21 at 17 07 39
birkir commented 3 years ago

Map is only referring to the map feature of CarPlay.

You have to implement your own map here, I provide a React View where you can render your own “Map”, whatever that is.

If you want something out of the box, please checkout Mapbox, they have an CarPlay feature.

I highly recommend reading the documentation for CarPlay before using this library https://developer.apple.com/documentation/carplay/

tomdye commented 3 years ago

Thanks for your speedy response. Within my app I have indeed got a Map to render but am now looking to use the POI template / list template / navigation screens etc - none of which appear to be working for me right now in my app or within the example app you created in this repo. (The screenshots above were of your example app)

birkir commented 3 years ago

Oh sorry I read the issue incorrectly.

You can take a look at the source to see how I bridged the POI and Navigation features.

I do want to note that I didn’t get the POI to work for me, as there was a bug within iOS 14 at the time (for that exact feature)

But for navigation, everything should work correctly, if they don’t, something has broken since I was working on this.

latest iOS update broke many things

tomdye commented 3 years ago

Regarding the POITemplate specifically, one of the things that stood out from the carplay developer guide was that it is not supported for navigation apps which I found odd.

The point of interest template can be used by EV charging, parking, and quick food ordering apps.

It doesn't appear that navigation is working, did you ever get an example running where you were able to display a POI overlay over the map base / root template or where you were able to start navigation?

tomdye commented 3 years ago

Fixed via https://github.com/birkir/react-native-carplay/pull/33