Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"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 this issue Nov 4, 2024 · 9 comments
Assignees
Labels
status: investigating The issue is under investigation, which is determined to be non-trivial. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@jaykishan23
Copy link

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!

@jaykishan23 jaykishan23 added triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Nov 4, 2024
@jaykishan23 jaykishan23 changed the title Below issue is coming on the navigation screenfailed to initialize navigation error code 4 "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 Nov 4, 2024
@jokerttu
Copy link
Contributor

jokerttu commented Nov 4, 2024

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.

@jokerttu jokerttu added status: investigating The issue is under investigation, which is determined to be non-trivial. and removed triage me I really want to be triaged. labels Nov 4, 2024
@jaykishan23
Copy link
Author

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
Copy link
Contributor

jokerttu commented Nov 7, 2024

@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
Copy link
Author

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

@jaykishan23
Copy link
Author

@jokerttu still facing "failed to initialize navigation error code 4" in android can u check?

@jokerttu
Copy link
Contributor

@jaykishan23
I haven't seen this error...
We need to be able to reproduce the issue to be able to fix possible implementation bugs.

Are you sure you have all location permissions configured right before trying to initialize navigation as the error index points to the
LOCATION_PERMISSION_MISSING enum value

Please provide minimun code where this issue is present, so that we can investigate the problem.

@jaykishan23
Copy link
Author

hi @jokerttu Yes, it is configured. As I mentioned before, a few days ago, the side-by-side navigation was working correctly in the emulator. However, maybe after the version update from the sdk side, the error "Failed to initialize navigation. Error Code 4" started appearing on the emulator screen.

@jaykishan23
Copy link
Author

jaykishan23 commented Dec 2, 2024

@jokerttu Hi, Below permission is added in android manifest please check
Screenshot 2024-12-02 at 8 01 30 PM

@jaykishan23
Copy link
Author

@jokerttu Hello can u please check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: investigating The issue is under investigation, which is determined to be non-trivial. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

2 participants