element-hq / element-android

A Matrix collaboration client for Android.
https://element.io/
GNU Affero General Public License v3.0
3.37k stars 717 forks source link

Live Location Share is not updating location and reporting wrong location #7106

Open torrybr opened 2 years ago

torrybr commented 2 years ago

Steps to reproduce

  1. Enable Live Tracking In Lab Settings.
  2. Begin a Live Share with precise location enabled + coarse location.
  3. Drive 60+ mph down the highway to report locations as I drive.

https://user-images.githubusercontent.com/16907963/189783115-50b4fd8d-3a25-440b-8738-d197b1bae978.mov

Outcome

What did you expect?

  1. I expect my location to update every 5 seconds as defined in the code.
  2. I expect my location to be correctly reported on the map to reflect where my device is.

    What happened instead?

  3. My location updates at random sometimes taking 20~ seconds as shown in the video
  4. My location is not being correctly reflected in the map. Element is reporting that I am off the road when its clear I am driving on the road via google maps. I have the google maps PiP shown to validate the gps is being updated.

Your phone model

Google Pixel 6

Operating system version

12

Application version and app store

Element version 1.34

Homeserver

matrix.org

Will you send logs?

Yes

Are you willing to provide a PR?

No

mnaturel commented 2 years ago

Hi @torrybr , thanks for reporting this issue. I would like to know if it happens all the time on your phone (on every live location share) or does it depend on the context of the live (high speed in a car for example)?

torrybr commented 2 years ago

I have just tested it walking and it appears the location is still acting strange. I have attached a video to show what is happening. My icon is jumping around and refreshing at weird intervals. Again I have precise location turned on.

https://user-images.githubusercontent.com/16907963/189954212-d901d2af-c9b2-4b6e-a8a8-38557403d1a1.mov

mnaturel commented 2 years ago

I have just tested it walking and it appears the location is still acting strange. I have attached a video to show what is happening. My icon is jumping around and refreshing at weird intervals. Again I have precise location turned on. bug_walking.mov

Thanks for the new tests and video. We will take a look at the logs when the team will have some time (seems to be in a few weeks).

torrybr commented 2 years ago

Thank you @mnaturel ! I appreciate you and the team looking into this 😃