dpa99c / react-native-launch-navigator

A React Native module for launching today's most popular navigation/ride apps to navigate to a destination.
143 stars 34 forks source link

iphone 7 IOS 12.3 Google Maps not working #24

Closed orhanoksuzz closed 4 years ago

orhanoksuzz commented 4 years ago

iphone 7 real device IOS 12.3 Google Maps does not work even though they are installed.

dpa99c commented 4 years ago

What does "does not work" mean?

That the Google Maps app is not being launched or that the Google Maps app is being launched but is not behaving as expected when it is launched?

orhanoksuzz commented 4 years ago

This code block does not open google maps as expected. The latest version of google maps is installed on the device.

`let app = null;

LaunchNavigator.isAppAvailable(LaunchNavigator.APP.GOOGLE_MAPS).then((isGoogleAvailable) => { if(isGoogleAvailable){ app = LaunchNavigator.APP.GOOGLE_MAPS; }else{ console.warn("GOOGLE_MAPS not available - falling back to default navigation app"); }

LaunchNavigator.navigate([50.279306, -5.163158], {
     start: "50.342847, -4.749904",
    app: app
});
    .then(() => console.log("Launched navigator"))
    .catch((err) => console.error("Error launching navigator: "+err));

});`

orhanoksuzz commented 4 years ago

@dpa99c can you help me?

dpa99c commented 4 years ago

Try building and running the example app to rule out possible causes in your own project.

dpa99c commented 4 years ago

Close due to no response from OP