[x] I confirm this is a suspected bug or issue that will affect other users
[ ] I have reproduced the issue using the example project or provided the necessary information to reproduce the issue.
I could not build/run the Ionic4Example using the provided instructions because npm install fails with the below error
alexryltsov@Alexs-MacBook-Pro-2 Ionic4Example % npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: Ionic4Example@0.0.1
npm ERR! Found: rxjs@6.3.3
npm ERR! node_modules/rxjs
npm ERR! rxjs@"~6.3.3" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer rxjs@"^5.5.0 || ^6.5.0" from @ionic-native/core@5.36.0
npm ERR! node_modules/@ionic-native/core
npm ERR! @ionic-native/core@"^5.0.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! /Users/alexryltsov/.npm/_logs/2024-11-07T15_14_01_315Z-eresolve-report.txt
npm ERR! A complete log of this run can be found in: /Users/alexryltsov/.npm/_logs/2024-11-07T15_14_01_315Z-debug-0.log
[x] I have read the documentation thoroughly and it does not help solve my issue.
[x] I have checked that no similar issues (open or closed) already exist.
Current behavior:
When on Android platform the navigate method is invoked, and the user chooses Google Maps mapping app, the app tries to geocoder the address to lat/lng. However, if this address can not be geocoded (for example, the address is unknown city unknown street unknown house which invokes google maps geocoder using this URL https://maps.google.com/maps/api/geocode/json?address=unknown city unknown street unknown house&sensor=false&key=<API_KEY>) and the google service returns the below response
Bug report
CHECKLIST
[x] I have read the issue reporting guidelines
[x] I confirm this is a suspected bug or issue that will affect other users
[ ] I have reproduced the issue using the example project or provided the necessary information to reproduce the issue.
I could not build/run the Ionic4Example using the provided instructions because
npm install
fails with the below error[x] I have read the documentation thoroughly and it does not help solve my issue.
[x] I have checked that no similar issues (open or closed) already exist.
Current behavior: When on Android platform the
navigate
method is invoked, and the user chooses Google Maps mapping app, the app tries to geocoder the address to lat/lng. However, if this address can not be geocoded (for example, the address isunknown city unknown street unknown house
which invokes google maps geocoder using this URLhttps://maps.google.com/maps/api/geocode/json?address=unknown city unknown street unknown house&sensor=false&key=<API_KEY>
) and the google service returns the below responsethe app fails with the error
Unable to geocode destination address to coordinates: Index 0 out of range [0..0
because it always expect the results array to contain the first element - see https://github.com/dpa99c/phonegap-launch-navigator/blob/master/src/android/lib/LaunchNavigator.java#L1704Expected behavior: No error occurs when address can not be geocoded
Steps to reproduce: See above
Screenshots N/A
Environment information
Related code:
Console output N/A
Other information: The plugin should be able to handle the use case when geocoding returns no result