You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 23, 2023. It is now read-only.
After stopping location updates (through tabbing out / changing Activity) and disconnecting from LOST api client, when it is attempted to reconnect later and request location updates anew, onLocationChanged is never called.
Steps to Reproduce
For StreetComplete: Turn on location. Tab out or go to settings activity, then go back. The GPS button does not stop blinking (=app is waiting for a location update but does not get one).
Program flow:
MainActivity.onStart(): locationRequestFragment.startRequest(); is called which ensures that the app has all the permissions and location is enabled. It then calls
MainActivity.onLocationIsEnabled(): The GPS button is made to blink. singleLocationRequest.startRequest (source) connects to LOST, on connection requests location updates and then would, on receiving the first location update, make the GPS button stop blinking. The location update never comes.
Edit: Now after 5-10 minutes, the location update was received.
Lost & Android Version
LOST 3.0.2
The text was updated successfully, but these errors were encountered:
Additional information: With earlier versions (except the ones that crashed), a location update was available practically immediately when tabbing out and then in.
westnordost
added a commit
to streetcomplete/StreetComplete
that referenced
this issue
Jul 6, 2017
The reason the initial location request is not received is because state is not cleared in the class which handles sending location updates when the service is shutdown. So, an initial location is attempted to be sent but is not deemed "good enough" and is therefore ignored.
Description
After stopping location updates (through tabbing out / changing Activity) and disconnecting from LOST api client, when it is attempted to reconnect later and request location updates anew, onLocationChanged is never called.
Steps to Reproduce
For StreetComplete: Turn on location. Tab out or go to settings activity, then go back. The GPS button does not stop blinking (=app is waiting for a location update but does not get one).
Program flow:
MainActivity.onStart()
:locationRequestFragment.startRequest();
is called which ensures that the app has all the permissions and location is enabled. It then callsMainActivity.onLocationIsEnabled()
: The GPS button is made to blink.singleLocationRequest.startRequest
(source) connects to LOST, on connection requests location updates and then would, on receiving the first location update, make the GPS button stop blinking. The location update never comes.Edit: Now after 5-10 minutes, the location update was received.
Lost & Android Version
LOST 3.0.2
The text was updated successfully, but these errors were encountered: