meteor / meteor/mobile-packages

mdg:geolocation ~ position won't be watched / asked again after error

Open
#62 4 comments 0 reactions 0 assignees Claimed by @lorensr View on GitHub
Dominant language
JavaScript
Stars
338
Forks
148
PR merge metrics
No merged PRs in 30d

Description

When onError is triggered we should set `watchingPosition` to false, so then we can call startWatchingPosition again ( and try to fetch the location again ).

At the moment if i received a TIMEOUT error, it doesn't retry and it seems that the app will only update the position if you refresh the page, when you could actually just call watchPosition again and get onPosition callback called.

Contributor guide

No contributing guide indexed for this repository

Research direction

Inspect the geolocation package's onError handling and the watchingPosition state used by startWatchingPosition. Confirm that a timeout or other error allows startWatchingPosition to be called again and that a later onPosition callback updates the location; pull request #87 is already open for this issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
mobile
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.