Skip to content

Android API >= 23 should, but does NOT, require an additional step to request the ACCESS_FINE_LOCATION permission. #18305

@ttahmouch

Description

@ttahmouch

According the the documentation found here,

Android API >= 23 Requires an additional step to check for, and request the ACCESS_FINE_LOCATION permission using the PermissionsAndroid API. Failure to do so may result in a hard crash.

However, in actual usage of the navigator.geolocation.getCurrentPosition() API, it does not actually require that the permission is requested from the user. It automatically requests the user's permission for ACCESS_FINE_LOCATION. The code that reflects this change can be found here.

Here is the commit that introduced the change.

Should the documentation reflect reality?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.Type: DocsIssues concerning the docs are tracked elsewhere: https://github.com/facebook/react-native-website

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions