You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2017/11/02 23:20:20 UTC

[GitHub] jcesarmobile closed pull request #158: CB-13522 (iOS): Remove usage description

jcesarmobile closed pull request #158: CB-13522 (iOS): Remove usage description
URL: https://github.com/apache/cordova-plugin-contacts/pull/158
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/README.md b/README.md
index f018631..17dad00 100644
--- a/README.md
+++ b/README.md
@@ -71,14 +71,19 @@ It is also possible to install via repo url directly ( unstable )
 
 ### iOS Quirks
 
-Since iOS 10 it's mandatory to add a `NSContactsUsageDescription` entry in the info.plist.
+Since iOS 10 it's mandatory to provide an usage description in the `info.plist` if trying to access privacy-sensitive data. When the system prompts the user to allow access, this usage description string will displayed as part of the permission dialog box, but if you didn't provide the usage description, the app will crash before showing the dialog. Also, Apple will reject apps that access private data but don't provide an usage description.
 
-`NSContactsUsageDescription` describes the reason that the app accesses the user?s contacts. When the system prompts the user to allow access, this string is displayed as part of the dialog box. To add this entry you can pass the variable `CONTACTS_USAGE_DESCRIPTION` on plugin install.
+ This plugins requires the following usage description:
 
-Example:
-`cordova plugin add cordova-plugin-contacts --variable CONTACTS_USAGE_DESCRIPTION="your usage message"`
+ * `NSContactsUsageDescription` describes the reason that the app accesses the user's contacts.
 
-If you don't pass the variable, the plugin will add an empty string as value.
+ To add this entry into the `info.plist`, you can use the `edit-config` tag in the `config.xml` like this:
+
+```
+<edit-config target="NSContactsUsageDescription" file="*-Info.plist" mode="merge">
+    <string>need contacts access to search friends</string>
+</edit-config>
+```
 
 ### Firefox OS Quirks
 
diff --git a/plugin.xml b/plugin.xml
index 039a706..3b58f39 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -134,11 +134,6 @@
             </feature>
         </config-file>
 
-        <preference name="CONTACTS_USAGE_DESCRIPTION" default=" " />
-        <config-file target="*-Info.plist" parent="NSContactsUsageDescription">
-            <string>$CONTACTS_USAGE_DESCRIPTION</string>
-        </config-file>
-
         <js-module src="www/ios/contacts.js" name="contacts-ios">
             <merges target="navigator.contacts" />
         </js-module>


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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