You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by he...@apache.org on 2013/12/03 22:40:59 UTC

docs commit: added description of steps needed to enable Contacts API in FirefoxOS

Updated Branches:
  refs/heads/master 4a87e6325 -> 13835542a


added description of steps needed to enable Contacts API in FirefoxOS


Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/13835542
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/13835542
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/13835542

Branch: refs/heads/master
Commit: 13835542ae22e9e8221b3c369b9500010516aad5
Parents: 4a87e63
Author: Piotr Zalewa <pi...@zalewa.info>
Authored: Mon Dec 2 14:29:44 2013 +0100
Committer: hermwong <he...@gmail.com>
Committed: Tue Dec 3 13:40:49 2013 -0800

----------------------------------------------------------------------
 docs/en/edge/cordova/contacts/contacts.md | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/13835542/docs/en/edge/cordova/contacts/contacts.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/cordova/contacts/contacts.md b/docs/en/edge/cordova/contacts/contacts.md
index 728aa9b..c981d0a 100644
--- a/docs/en/edge/cordova/contacts/contacts.md
+++ b/docs/en/edge/cordova/contacts/contacts.md
@@ -117,6 +117,22 @@ platform-specific configuration settings described below:
             <param name="ios-package" value="CDVContacts" />
         </feature>
 
+* FirefoxOS
+       
+		Enable access to the API by changing [app permissions](https://developer.mozilla.org/en-US/Apps/Developing/App_permissions)
+
+        (in platforms/firefoxos/www/manifest.webapp)
+        "type": "privileged",
+        "permissions": {
+			"contacts": {
+				"access": (choose from "readonly", "readwrite", "readcreate", or "createonly"),
+				"description": "Describe why you need access to contacts API"
+			}
+        }
+
+		All privileged apps enforce [Content Security Policy](https://developer.mozilla.org/en-US/Apps/CSP) 
+		which forbids inline scripts. Initialize your application in another way.
+
 * Windows Phone (in `Properties/WPAppManifest.xml`)
 
         <Capabilities>