birkir / react-native-carplay

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

PointOfInterestTemplate - Not working #159

Open ElangoPrince opened 10 months ago

ElangoPrince commented 10 months ago

Describe the bug How to use PointOfInterestTemplate in react native. I have installed and used basic point-of-interest template, but app getting crash. Configuration Details: "react-native": "0.72.6", "react-native-carplay": "^2.3.0", "IOS-16", carplay and map entitlements added.

Sample Code:

const template = new PointOfInterestTemplate({
            title: 'Example',
            items: [
                {
                    id: 'test',
                    location: { latitude: 64.011, longitude: -21.66 },
                    title: 'Testing',
                    subtitle: 'foobar',
                },
            ],
        });
        CarPlay.pushTemplate(template, false);

To Reproduce "react-native run-ios"

CarPlay (please complete the following information):

@birkir can you please help me here. @DanielKuhn FYI.

birkir commented 10 months ago

maps entitlement does not have access to POI, refer to the entitlement matrix

ElangoPrince commented 10 months ago

@birkir I have added Fueling Entitlement. Can I use now? ( com.apple.developer.carplay-fueling )

Screenshot 2023-12-04 at 10 33 13 AM
saikiranm33 commented 6 months ago

@ElangoPrince Are u able to run the POI ?

ElangoPrince commented 6 months ago

@saikiranm33 Nope. Map's entitlement also required to implement POI (Not enough com.apple.developer.carplay-fueling) entitlement. Any how we need both entitlement to implement this feature.