Skip to content

watchposition() issues #328

Closed
Closed
@petertoth-dev

Description

@petertoth-dev

Environment

Platforms

iOS (not tested on Android)

Versions

  • Android: -
  • iOS: 17.5.1
  • react-native-geolocation: 3.1.0
  • react-native: 0.72.9
  • react: 18.2.0

Description

For some reason if the watcher is active, and requests a location again, everything location-related response will stop working.
When I use Geolocation.getCurrentPosition() multiple times, everything is working. Some users have reported the same behavior, they just use setInterval() with getCurrentPosition() to update the location which is a VERY BAD practice regarding the battery and performance.

When I use watchposition() and do something that would request watchposition again, even if I make sure to clear the previous watch, everything, even the previous ones will stop working until I close and re-open the entire app. No workarounds, no errors, permissions are OK, everything has been checked and confirmed 100x.

So please just check what's going on and how to avoid stopping location tracking when watchposition() has been called.

Reproducible Demo

Sorry but I really don't have time to do that, but just take a look at the previous tickets, numerous are mentioning this huge and frustrating issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions