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.

maximumAge is in seconds, not milliseconds

See original GitHub issue

React Native: 0.64.0 Library version: 5.3.0-beta.1, 5.2.0 Device: Samsung Galaxy A71

The maximumAge option seems to be in seconds, not in milliseconds like described in the documentation. App is using the fused location provider.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
FanchenBaocommented, Jun 25, 2021

I am using Geolocation.watchPosition, and I feel like interval is not in ms but in centisecond. I set it to 1000, and the location updates about every 10 seconds. When I set it to 100, it updates every second.

0reactions
Agontukcommented, Jan 7, 2022

Closing due to inactivity, also I’m confident that this is working as expected. Feel free to open a new issue if that’s not the case.

Read more comments on GitHub >

github_iconTop Results From Across the Web

react native navigator.geolocation.getCurrentPosition not ...
The PositionOptions.maximumAge property is a positive long value indicating the maximum age in milliseconds of a possible cached position that ...
Read more >
AWS::Lambda::EventSourceMapping - AWS CloudFormation
The maximum amount of time, in seconds, that Lambda spends gathering records before invoking the function. Default (Kinesis, DynamoDB, Amazon SQS event sources) ......
Read more >
Timeout properties - IBM
Timeout properties ; si.GPS.maximumAge, Amount of time in milliseconds that the mobile device caches the latest acquired GPS co-ordinates. 60000 ms ; si.GPS....
Read more >
PositionOptions · WebPlatform Docs
maximumAge : Indicates that the application is willing to accept a cached position whose age is no greater than the specified time (in...
Read more >
Geolocation API - W3C
Since publication of the Second Edition in 2016, ... a cached position whose age is no greater than the specified time in milliseconds....
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