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

Android Auto does not show current location unless OsmAnd is open on the phone #19839

Open
mdykierek opened this issue May 11, 2024 · 4 comments
Labels
Observed Needs more clarification, feedback, or research

Comments

@mdykierek
Copy link

Description

When setting route from the car's screen, the route and car position and direction does not show.
I have to open OsmAnd+ UI on the phone to show center the map and show vehicle position and heading.

Steps to reproduce

Set a route on car's screen and drive.

Actual result

Car's location and heading is not shown on the car's screen.

Expected result

Location and route should be centered and shown without need to open OsmAnd on the phone.

Your Environment (required)

WARNING Crash-Logs MAY contain information you deem sensitive.
Review this CAREFULLY before posting your issue!

OsmAnd Version:
Android/iOS version:
Device model:
Crash-Logs: ?
@mdykierek mdykierek changed the title Android Auto does not show current location unless OsmAnd is open on the phon Android Auto does not show current location unless OsmAnd is open on the phone May 11, 2024
@yuriiurshuliak
Copy link

Please indicate the application version you are using.
What GPS permissions have been granted: Continuous or One-time use?
Which location source is employed: Google Play Services or Android API?
Have you enabled device/battery optimization?

@vshcherb vshcherb added the Observed Needs more clarification, feedback, or research label May 13, 2024
@mdykierek
Copy link
Author

  1. OsmAnd+ version 4.7.17
  2. Android 14 on. Motorola Edge 40 Pro
  3. Android Auto 11.8.641624-release
  4. Toyota Corlolla '21
  5. GPS access is granted for "When using App" - there is no continuous option.
  6. Location Source is Google Play Services
  7. I usually do have battery saver enabled, but Android Auto requires USB connection and this means the device is being charged. When charging battery saver is irrelevant and marked as unavailable.

I will try to figure out more exact steps to reproduce as sometimes it occurs more often. It definitely is not a one time thing. I avoid reporting such things as I treat them as my mistakes or lack of understanding how thing work.

@mdykierek
Copy link
Author

So I nailed it.
The behavior can be observed when the destination is on/behind a private access road. My house is located in such place.
So I leave the office, set destination=Home and drive. The voice prompts, the lane assistance work fine, but the map does not show up:
aa
So you need to unlock the phone an open the OsmAnd to see that is asks a question there:
ss
You don't need to answer. The map on car's screen is back to normal.
My workaround is to move the Home to a public access road and the problem is gone. But if for example you put in an address that is private, you are in trouble.

@DmitryAlexei
Copy link
Contributor

DmitryAlexei commented May 31, 2024

I tried several times to reproduce your issue on release version (OsmAnd 4.7.17, released: 2024-05-07) and head unit simulator, but almost every time it worked fine.

  • I set my work favorite destination located in access=private zone
  • I switched off osmand on the phone, phone screen was also locked
  • allow private access option on the phone was disabled
  • I entered work as my destination using android auto head unit and started navigation

Actual result

  • despite warning on the phone (see screenshot) navigation instructions on the AA screen were correct
  • only one time location on the android auto was not synchronized with my current location. in that case, I could zoom out map manually and see my current location. Turn instructions were also correct

As a workaround in your case, I suggest enabling Allow private access in the OsmAnd navigation settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Observed Needs more clarification, feedback, or research
Projects
None yet
Development

No branches or pull requests

4 participants