Closed GuillaumeNachury closed 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.
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
cordova -v
cordova platform ls
cordova plugin ls
sw_vers
winver
Runtime issue
Android build issue:
node -v
ls platforms/android/.gradle
android:targetSdkVersion
inAndroidManifest.xml
sdkmanager --list | sed -e '/Available Packages/q'
iOS build issue:
node -v
Related code:
Console output
console output
``` // Paste any relevant JS/native console output here ```**Other information:**