Skip to content
Permalink
Browse files
Add missing information for iOS (#181)
* Update README.md

* Update README.md

* Update README.md

Co-Authored-By: Norman Breau <norman@normanbreau.com>

* Update README.md

Co-Authored-By: Norman Breau <norman@normanbreau.com>

* Update README.md

Co-Authored-By: Norman Breau <norman@normanbreau.com>

* Update README.md

* docs: fix grammar

Co-Authored-By: Norman Breau <norman@normanbreau.com>

Co-authored-by: mosababubakr <47486787+mosababubakr@users.noreply.github.com>
Co-authored-by: Norman Breau <norman@normanbreau.com>
Co-authored-by: Tim Brust <ratchet.player@gmx.de>
  • Loading branch information
4 people committed Mar 30, 2020
1 parent a11bdcd commit 4d14db2e07cb38ffa4d57f1abed0fdb780d27e86
Showing 1 changed file with 14 additions and 2 deletions.
@@ -160,15 +160,27 @@ error, the `geolocationError` callback is passed a

This plugins requires the following usage description:

* `NSLocationWhenInUseUsageDescription` describes the reason that the app accesses the user's location.
* `NSLocationWhenInUseUsageDescription` describes the reason that the app accesses the user's location, this is used while the app is running in the foreground.
* `NSLocationAlwaysAndWhenInUseUsageDescription` describes the reason that the app is requesting access to the user’s location information at all times. Use this key if your iOS app accesses location information while running in the background and foreground.
* `NSLocationAlwaysUsageDescription` describes the reason that the app is requesting access to the user's location at all times. Use this key if your app accesses location information in the background and you deploy to a target earlier than iOS 11. For iOS 11 and later, add both `NSLocationAlwaysUsageDescription` and `NSLocationAlwaysAndWhenInUseUsageDescription` to your app’s `Info.plist` file with the same message.

To add this entry into the `info.plist`, you can use the `edit-config` tag in the `config.xml` like this:
To add these entries into the `info.plist`, you can use the `edit-config` tag in the `config.xml` like this:

```
<edit-config target="NSLocationWhenInUseUsageDescription" file="*-Info.plist" mode="merge">
<string>need location access to find things nearby</string>
</edit-config>
```
```
<edit-config target="NSLocationAlwaysAndWhenInUseUsageDescription" file="*-Info.plist" mode="merge">
<string>need location access to find things nearby</string>
</edit-config>
```
```
<edit-config target="NSLocationAlwaysUsageDescription" file="*-Info.plist" mode="merge">
<string>need location access to find things nearby</string>
</edit-config>
```

### Android Quirks

0 comments on commit 4d14db2

Please sign in to comment.