From 43f69cf26c01d4521c0dbac5af06b908c2cfdd9b Mon Sep 17 00:00:00 2001 From: SyedTayyabUlMazhar <43899564+SyedTayyabUlMazhar@users.noreply.github.com> Date: Thu, 16 Feb 2023 17:51:29 +0500 Subject: [PATCH] Update README.md for android Include instructions to use background location on android. --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 9cc4ef1..3994523 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,9 @@ Android API >= 18 Positions will also contain a `mocked` boolean to indicate if Failure to do so may result in a hard crash.

+**Android 10 and above( API >= 29):** +In order to enable geolocation in the background, you need to add `` and also check & request permission using PermissionsAndroid API. + ## Migrating from the core `react-native` module This module was created when the Geolocation was split out from the core of React Native. As a browser polyfill, this API was available through the `navigator.geolocation` global - you didn't need to import it. To migrate to this module you need to follow the installation instructions above and change following code: