Heading or Bearing

Andrew 2 months ago

I noticed that after the update, the client no longer sends the device heading. How can I fix this?

Anton Tananaev 2 months ago

You mean it's sending zeroes?

Andrew 2 months ago

I mean it's sending nothing :(

Andrew 2 months ago

I should add that this is on Android. All the other data—coordinates, speed, and altitude—is being sent correctly.

Anton Tananaev 2 months ago

Do you have logs?

Andrew 2 months ago
// Read Traccar body
            String raw = request.content().toString(StandardCharsets.UTF_8);
            System.out.println(raw);
id=61171705&lat=xx.1922092&lon=yy.90328&timestamp=1785168687&accuracy=16.48699951171875&altitude=146.60000610351562&batt=71&charge=false
id=61171705&lat=xx.1921605&lon=yy.9033168&timestamp=1785168702&accuracy=14.57699966430664&altitude=146.50001525878906&batt=71&charge=false
id=61171705&lat=xx.1921605&lon=yy.9033168&timestamp=1785168702&accuracy=14.57699966430664&altitude=146.50001525878906&batt=71&charge=false
Anton Tananaev 2 months ago

If it's missing, it means that the phone doesn't provide this information. Which usually means cell or wifi-based location.

Andrew 2 months ago

this happened after the update, it was before

Anton Tananaev 2 months ago

From what version to what version?

Andrew 2 months ago

I noticed this 2 weeks ago.

Andrew 2 months ago

any solutions?

Anton Tananaev 2 months ago

This simply means your device is not providing GPS location. What accuracy are you using?

Andrew 2 months ago

highest, early was heading :)

Anton Tananaev 2 months ago

Highest usually gives GPS when available. This sounds like a phone issue to me.

Andrew 2 months ago

i have this problem in few phones