NativeScript / NativeScript/plugins

[Geolocation] enableLocationRequest is failing on Android

Open
#378 1 comment 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

It sounds like enableLocationRequest() is making basic permission requests but needs to allow the fine-grain perms as options if you need them.

if you end up getting this bellow error during the request for permission
JS: ERROR Error: java. lang.SecurityException: my location requires permission ACCESS_FINE_LOCATION or ACCESS_COARSE_LOCATION for now we might need to use the https://github.com/nativescript-community/perms plugin to request permission on Andriod until it is fixed.

We need to fix this or add this note to the Readme.

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 at the enableLocationRequest() entry point and reproduce the Android permission request that raises the reported SecurityException. Check the README for existing permission guidance and compare the current behavior with the referenced nativescript-community/perms plugin; done means the request works for the required location permissions or the README clearly documents the limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, typescript
Domain
mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.