{"action":"created","issue":{"url":"https://api.github.com/repos/blocshop/sockets-for-cordova/issues/15","labels_url":"https://api.github.com/repos/blocshop/sockets-for-cordova/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/blocshop/sockets-for-cordova/issues/15/comments","events_url":"https://api.github.com/repos/blocshop/sockets-for-cordova/issues/15/events","html_url":"https://github.com/blocshop/sockets-for-cordova/issues/15","id":98679831,"number":15,"title":"Need support firefoxos platform","user":{"login":"ettoolong","id":909570,"avatar_url":"https://avatars.githubusercontent.com/u/909570?v=3","gravatar_id":"","url":"https://api.github.com/users/ettoolong","html_url":"https://github.com/ettoolong","followers_url":"https://api.github.com/users/ettoolong/followers","following_url":"https://api.github.com/users/ettoolong/following{/other_user}","gists_url":"https://api.github.com/users/ettoolong/gists{/gist_id}","starred_url":"https://api.github.com/users/ettoolong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ettoolong/subscriptions","organizations_url":"https://api.github.com/users/ettoolong/orgs","repos_url":"https://api.github.com/users/ettoolong/repos","events_url":"https://api.github.com/users/ettoolong/events{/privacy}","received_events_url":"https://api.github.com/users/ettoolong/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-03T06:22:55Z","updated_at":"2015-08-04T08:29:49Z","closed_at":null,"body":"See pull request https://github.com/blocshop/sockets-for-cordova/pull/14\r\n\r\nNeed any other modify?"},"comment":{"url":"https://api.github.com/repos/blocshop/sockets-for-cordova/issues/comments/127524884","html_url":"https://github.com/blocshop/sockets-for-cordova/issues/15#issuecomment-127524884","issue_url":"https://api.github.com/repos/blocshop/sockets-for-cordova/issues/15","id":127524884,"user":{"login":"ettoolong","id":909570,"avatar_url":"https://avatars.githubusercontent.com/u/909570?v=3","gravatar_id":"","url":"https://api.github.com/users/ettoolong","html_url":"https://github.com/ettoolong","followers_url":"https://api.github.com/users/ettoolong/followers","following_url":"https://api.github.com/users/ettoolong/following{/other_user}","gists_url":"https://api.github.com/users/ettoolong/gists{/gist_id}","starred_url":"https://api.github.com/users/ettoolong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ettoolong/subscriptions","organizations_url":"https://api.github.com/users/ettoolong/orgs","repos_url":"https://api.github.com/users/ettoolong/repos","events_url":"https://api.github.com/users/ettoolong/events{/privacy}","received_events_url":"https://api.github.com/users/ettoolong/received_events","type":"User","site_admin":false},"created_at":"2015-08-04T08:29:49Z","updated_at":"2015-08-04T08:29:49Z","body":"Hi,\r\n\r\nI try to modify config.xml, Add below setting:\r\n\r\n\\<platform name=\"firefoxos\">\r\n  \\<permission name=\"tcp-socket\"\r\n  description=\"Create TCP sockets and communicate over them.\"\r\n  privileged=\"true\"/>\r\n\\</platform>\r\n\r\nthen I build my demo-app\r\n\r\n`$ cordova platform add firefoxos`\r\n`$ cordova build firefoxos`\r\n\r\nand check `app/platforms/firefoxos/www/manifest.webapp`\r\n\r\npermissions settings not be add to `manifest.webapp`   :disappointed: \r\n\r\nwe need permission setting like below to enable tcp-socket:\r\n`    \"type\": \"privileged\",`\r\n`    \"permissions\": {`\r\n`      \"tcp-socket\": {`\r\n`        \"description\" : \"Create TCP sockets and communicate over them.\"`\r\n`      }`\r\n`    },`\r\n\r\nI add them to `manifest.webapp` manually.\r\nHow to make Cordova do this automatically?\r\nDoes I make something wrong in my config.xml?\r\n\r\nI found some issue here: https://issues.apache.org/jira/browse/CB-9407\r\n\r\nabout firefoxos simulator,\r\nsee:\r\nhttps://developer.mozilla.org/en-US/Apps/Tools_and_frameworks/Cordova_support_for_Firefox_OS\r\n\r\nInstall firefoxos simulator:\r\n1. Install Firefox on PC.\r\n2. Run Firefox > Main menu > Tools > Web Developer > WebIDE\r\n3. Select Runtime > Install simulator > Install (Firefox OS 2.0)\r\nAfter install simulator\r\n4. Select Runtime > Install simulator > Firefox OS 2.0\r\n5. Open App > open packaged app (path: app/platforms/firefoxos/www/ )\r\n6 Click 'Install and Run' button.\r\n"}}