You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by no...@apache.org on 2020/03/30 01:15:44 UTC

[cordova-plugin-geolocation] branch master updated: Add missing information for iOS (#181)

This is an automated email from the ASF dual-hosted git repository.

normanbreau pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-plugin-geolocation.git


The following commit(s) were added to refs/heads/master by this push:
     new 4d14db2  Add missing information for iOS (#181)
4d14db2 is described below

commit 4d14db2e07cb38ffa4d57f1abed0fdb780d27e86
Author: Mosab A <47...@users.noreply.github.com>
AuthorDate: Mon Mar 30 04:15:33 2020 +0300

    Add missing information for iOS (#181)
    
    * Update README.md
    
    * Update README.md
    
    * Update README.md
    
    Co-Authored-By: Norman Breau <no...@normanbreau.com>
    
    * Update README.md
    
    Co-Authored-By: Norman Breau <no...@normanbreau.com>
    
    * Update README.md
    
    Co-Authored-By: Norman Breau <no...@normanbreau.com>
    
    * Update README.md
    
    * docs: fix grammar
    
    Co-Authored-By: Norman Breau <no...@normanbreau.com>
    
    Co-authored-by: mosababubakr <47...@users.noreply.github.com>
    Co-authored-by: Norman Breau <no...@normanbreau.com>
    Co-authored-by: Tim Brust <ra...@gmx.de>
---
 README.md | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index eff61ce..76ddebd 100644
--- a/README.md
+++ b/README.md
@@ -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
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org