NativeScript / NativeScript/plugins

[@nativescript/geolocation] getCurrentLocation() not working in NS8

Open
#384 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
206
Forks
123
Avg merge
2d 1h
Merged PRs (30d)
1

Description

getCurrentLocation() returned an error in NativeScript 8:
Error: Cannot enable the location service. TypeError: Cannot read property 'Accuracy' of undefined

I'm using the latest version "@nativescript/geolocation": "8.1.0"

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing getCurrentLocation() with @nativescript/geolocation 8.1.0 under NativeScript 8 and trace why Accuracy is undefined while enabling the location service. Done means the call no longer returns the reported error; the issue does not mention a source file or test to run.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.