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

Native picker is not prompt - default app used instead #33

Closed GuillaumeNachury closed 3 years ago

GuillaumeNachury commented 4 years ago

Bug report

In the README.md we can find options - optional parameters: {string} app - name of the navigation app to use for directions. Specify using LaunchNavigator.APP constants. e.g. LaunchNavigator.APP.GOOGLE_MAPS. If not specified, defaults to user selection via native picker UI.

On my android phone I have google maps and waze installed. Both are returned by `LaunchNavigator.getAvailableApps();``

When I request a navigation, I don't have any native picker but instead G. Maps is launched.

Expected behavior:

As described in the readme a native picker to choose an app for the navigation (e.g. waze) should pop

Steps to reproduce:

Screenshots

Environment information

Runtime issue

Android build issue:

iOS build issue:

Related code:

insert any relevant code here such as plugin API calls / input parameters

Console output

console output ``` // Paste any relevant JS/native console output here ```


**Other information:**
dpa99c commented 3 years ago

This is a documentation issue:

If not specified, defaults to user selection via native picker UI

This is not the case for this module (see #8) and has been erroneously carried over from the documentation for phonegap-launch-navigator which does provide a native picker UI. This module currently does not provide an out-of-the-box picker UI so it's up to the app developer to implement a UI with which the user can select their chosen app.