question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

reportLocation does not report location anymore

See original GitHub issue

I use owntracks to keep track of my android battery in home assistant when the phone is home, so I have an automation that every 5 minutes calls

_type: cmd
action: reportLocation

This used to work reliably, but since the update, that changed to the 4 different monitoring modes, when the phone is in “significant changes monitoring mode”, it will not respond to reportLocation anymore. Not even when the app is in foreground.

Here is a portion of my mqtt server. The location report was triggered manually from the phone. The request wasn’t changed, only thing that changed was the owntracks update.

owntracks/christian-pixel3xl/pixel3xl {"_type":"location","acc":15,"alt":0.0,"batt":38,"conn":"w","lat":xxxx,"lon":xxxx,"t":"u","tid":"CH","tst":1544329204,"vac":0,"vel":0.0}
owntracks/christian-pixel3xl/pixel3xl/cmd {"_type":"cmd","action":"reportLocation"}
owntracks/christian-pixel3xl/pixel3xl/cmd {"_type":"cmd","action":"reportLocation"}
owntracks/christian-pixel3xl/pixel3xl/cmd {"_type":"cmd","action":"reportLocation"}

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
binarybuckscommented, Dec 9, 2018

@metabubble the fix is now available on Google Play in 2.1.1

1reaction
binarybuckscommented, Dec 9, 2018

You’re correct. Significant changes mode is the exactly like the old behaviour and can be tweaked with the same settings. Just the foreground/background things were removed. I’ve updated the changelog to make that more clear.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Turn Location Services and GPS on or off on your iPhone ...
Learn how to turn Location Services and GPS on or off for individual apps. How to give apps permission to use your location....
Read more >
GnssDriver - Android Developers
When a new GNSS reading is available, call reportLocation(Location) to report it to the framework. Summary. Public constructors. GnssDriver() ...
Read more >
Manage your Location History - Google Maps Help
Your location won't be reported from any of your devices and you will not have new Location History recorded to your account. Your...
Read more >
Facebook is getting rid of some location-tracking features due ...
This doesn't mean that Facebook will stop collecting location data ... turn off background location tracking in 2019 following a report that ...
Read more >
5 Solutions to Fix “Find My Friends Location Not Available”
Actually, there are more unforeseen reasons that may cause this problem. So, how to fix it, the following will show you the traditional...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found