googlemaps / react-native-navigation-sdk

Apache License 2.0
26 stars 5 forks source link

"failed to initialize navigation error code 4" this issue is coming on the navigation screen while i try to run maps on the latest version of react native #326

Open jaykishan23 opened 3 days ago

jaykishan23 commented 3 days ago

Thanks for stopping by to let us know something could be better!


PLEASE READ

If you have a support contract with Google, please create an issue in the support console. This will ensure a timely response.

Discover additional support services for the Google Maps Platform, including developer communities, technical guidance, and expert support at the Google Maps Platform support resources page.

If your bug or feature request is not related to this particular library, please visit the Google Maps Platform issue trackers.

Check for answers on StackOverflow with the google-maps tag.


Please be sure to include as much information as possible:

Environment details

  1. Specify the API at the beginning of the title (for example, "Places: ...")
  2. OS type and version
  3. Library version and other environment information

Steps to reproduce

  1. ?

Code example

# example

Stack trace

# example

Following these steps will guarantee the quickest resolution possible.

Thanks!

jokerttu commented 3 days ago

Error code 4 points to LOCATION_PERMISSION_MISSING on enum NavigationInitErrorCode

@jaykishan23 if you haven't given proper permissions to the app, and this is the issue, please close this issue.

jaykishan23 commented 2 days ago

I had given all the permission in the android manifest and before 5 days it was working also but from last 2 days the navigation view in map is also not showing below error is coming

Screenshot 2024-11-06 at 3 20 28 PM
jokerttu commented 1 day ago

@jaykishan23

I had given all the permission in the android manifest and before 5 days it was working also but from last 2 days the navigation view in map is also not showing below error is coming

Please uninstall the app from emulator, and install/run it again. Make sure you give as wide permissions as possible when requested. This error is only thrown if location is not available for the SDK on the device / emulator; so I see this as a permission issue on the application level.

jaykishan23 commented 19 hours ago

I had checked in real device as well still the same issue is coming