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

Not showing phone position on Android 11 #84

Open
sigitm opened this issue Sep 30, 2021 · 6 comments
Open

Not showing phone position on Android 11 #84

sigitm opened this issue Sep 30, 2021 · 6 comments

Comments

@sigitm
Copy link

sigitm commented Sep 30, 2021

Screenshot_20210930-094443 Screenshot_20210930-094455

Hi,
I installed a Traccar server at home and a gps tracker in my car.
I connect to it from my pc (using my personal website address) and my phone.

A useful feature is when I click on the Current Location button (the one with a compass icon) and a blue dot appears with my current position, using phone gps. In this way I can compare my current position and my car position and easily find where my car is parked.

When I use Traccar Manager on my Oneplus Nord phone with Android 11, I cannot see my current phone position.
The Current Location button does nothing.
In phone settings, Traccar Manager location permission is on, when app is in use (I cannot choose "always").

I tried to install Traccar Manager on an old tablet with Android 7 (using same server, same account, etc.), and it works flawlessly. I see my position when I enable Current Location.
In tablet settings, Traccar Manager location permission is always on.

I thinks there's an issue with Android 11 and maybe new permissions system.

@tananaev
Copy link
Member

Are you connected to HTTPS server URL?

@sigitm
Copy link
Author

sigitm commented Sep 30, 2021

Are you connected to HTTPS server URL?

Yes, I am.

@tananaev
Copy link
Member

The issue is not with permission. It should be "when app is in use", so that part is correct.

@sigitm
Copy link
Author

sigitm commented Sep 30, 2021

Don't know what else to check.
Does the app provide logs?
I tried to look into Logcat while tapping on Current Location, but found nothing relevant about 'traccar' or 'location'.

@tananaev
Copy link
Member

The feature is basically provided be the WebView, so there's not much to log. I guess the only option I see is to debug the code (both web and native) to see if all callbacks are getting called.

@sigitm
Copy link
Author

sigitm commented Sep 30, 2021

I just discovered that if I open Chrome on the phone and connect to my Traccar url, the Current Location button works perfectly: after tapping on it, and allowing the "this site wants to know your location" popup, the blue dot appears.

Therefore, issue is only related to the Traccar Manager app.

At least I can use Chrome as a workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants