diff --git a/releases/next/docs/geolocation.html b/releases/next/docs/geolocation.html index 928f8efb0cf..3da051f357f 100644 --- a/releases/next/docs/geolocation.html +++ b/releases/next/docs/geolocation.html @@ -17,7 +17,8 @@ enabled by default when you create a project with react-native init 'NSLocationAlwaysUsageDescription' key in Info.plist and add location as a background mode in the 'Capabilities' tab in Xcode.

Android #

To request access to location, you need to add the following line to your app's AndroidManifest.xml:

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />

Android API >= 18 Positions will also contain a mocked boolean to indicate if position -was created from a mock provider.

Methods #

static requestAuthorization() #

Request suitable Location permission based on the key configured on pList. +was created from a mock provider.

Methods #

static setRNConfiguration(config) #

Sets configuration options that will be used in all location requests.

Options #

iOS #

  • skipPermissionRequests - defaults to false, if true you must request permissions +before using Geolocation APIs.

static requestAuthorization() #

Request suitable Location permission based on the key configured on pList. If NSLocationAlwaysUsageDescription is set, it will request Always authorization, although if NSLocationWhenInUseUsageDescription is set, it will request InUse authorization.

static getCurrentPosition(geo_success, geo_error?, geo_options?) #

Invokes the success callback once with the latest location info. Supported