-
Notifications
You must be signed in to change notification settings - Fork 427
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
Location Updates Stops Immediately when user stops on a traffic signal even ignored the stopTimeout. #2234
Comments
What specific timestamp range in your logs are you interested in? |
Dear Chris,
I hope this message finds you well.
I am interested in obtaining timestamp data for the range *2024-12-18
10:25:48 to 2024-12-18 10:27:52 UTC*, where the user stops, and no location
updates are received during this period.
Thank you for your assistance.
Best regards,
…On Wed, Dec 18, 2024 at 8:29 PM Chris Scott ***@***.***> wrote:
What specific timestamp range in your logs are you interested in?
—
Reply to this email directly, view it on GitHub
<#2234 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BKDYOJOXFHFD7OVOLAIWZED2GGIEFAVCNFSM6AAAAABT2T63FWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNJRGYYTSNZXGU>
.
You are receiving this because you authored the thread.Message ID:
<transistorsoft/react-native-background-geolocation/issues/2234/2551619775
@github.com>
|
Dear Chris,
I hope this message finds you well.
I am interested in obtaining timestamp data for the range *2024-12-18
15:25:48 to 2024-12-18 15:27:52 PST*, where the user stops, and no location
updates are received during this period. Below I have attached the
screenshot from the logs.
[image: image.png]
Thank you for your assistance.
Best regards
…On Thu, Dec 19, 2024 at 12:01 PM Ali Hasan ***@***.***> wrote:
Dear Chris,
I hope this message finds you well.
I am interested in obtaining timestamp data for the range *2024-12-18
10:25:48 to 2024-12-18 10:27:52 UTC*, where the user stops, and no
location updates are received during this period.
Thank you for your assistance.
Best regards,
On Wed, Dec 18, 2024 at 8:29 PM Chris Scott ***@***.***>
wrote:
> What specific timestamp range in your logs are you interested in?
>
> —
> Reply to this email directly, view it on GitHub
> <#2234 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/BKDYOJOXFHFD7OVOLAIWZED2GGIEFAVCNFSM6AAAAABT2T63FWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNJRGYYTSNZXGU>
> .
> You are receiving this because you authored the thread.Message ID:
> <transistorsoft/react-native-background-geolocation/issues/2234/2551619775
> @github.com>
>
|
Why are you providing Android logs for an iOS issue? Why are you concerned about a period of 2 minutes? |
I am concerned because when the user stops at a traffic signal, I do not receive any updates during this period. Instead, it continues to display the user's speed from the previous location. However, the user mentioned that they were stationary, waiting for the traffic signal to turn green. As a result, I am not getting the updated speed. Additionally, I apologize for mistakenly specifying the platform as iOS. |
There is nothing unusual in the logs. If you want better performance, DON'T DO THIS:
|
I set disableMotionActivityUpdates to false and tested the scenario again. The issue persists: location data is not provided when the user stops at a traffic signal for some time. Once the user starts moving again, location updates are delayed by 1 minute and 30 seconds.In some cases, user is not getting location update at all when moving after some times. |
Set this to |
@christocracy According to the documentation, this is primarily a status bar change on iOS devices. Will these settings have a significant impact on location updates when the user stop or start moving after being stationary for some time? |
Since iOS 18, it’s more than just a status bar change. Try it and see. |
@christocracy I have enabled showsBackgroundLocationIndicator, but I encountered an issue where the location updates stop when the iOS device remains stationary for some time, e.g. remain still in my pocket or on a car dashboard. However, as soon as I pick up the device from my pocket or move the device from my car dashboard, the location updates resume automatically. Still, I am not getting location data when the user stops at a traffic signal for some time and hence the speed from last location is displayed which is 20, not the updated one as user stops on traffic signal. |
Your Environment
react-native -v
):0.70.6Expected Behavior
It should not stops location updates untill stopTimeout time breaches.
Actual Behavior
It stops location updates as user stops on a signal for 30 seconds, however I have mentioned the stopTimeout interval of 5 minutes,
Steps to Reproduce
Context
Debug logs
Logs
background-geolocation (22).log
The text was updated successfully, but these errors were encountered: