Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need support firefoxos platform #15

Open
ettoolong opened this issue Aug 3, 2015 · 2 comments
Open

Need support firefoxos platform #15

ettoolong opened this issue Aug 3, 2015 · 2 comments

Comments

@ettoolong
Copy link

See pull request #14

Need any other modify?

@mobratil
Copy link
Contributor

mobratil commented Aug 4, 2015

Hi,

thank you very much for your request. I need to review it first. Unfortunately, I don't have any firefoxos device (I'll try some emulator), but I thing I can merge it with our master branch, as experimental support for firefoxos.

I have one question for now. You left comment in firefoxos/SocketProxy.js file, that we should modify config.xml. Could you modify that file?

@ettoolong
Copy link
Author

Hi,

I try to modify config.xml, Add below setting:

then I build my demo-app

$ cordova platform add firefoxos
$ cordova build firefoxos

and check app/platforms/firefoxos/www/manifest.webapp

permissions settings not be add to manifest.webapp 😞

we need permission setting like below to enable tcp-socket:
"type": "privileged",
"permissions": {
"tcp-socket": {
"description" : "Create TCP sockets and communicate over them."
}
},

I add them to manifest.webapp manually.
How to make Cordova do this automatically?
Does I make something wrong in my config.xml?

I found some issue here: https://issues.apache.org/jira/browse/CB-9407

about firefoxos simulator,
see:
https://developer.mozilla.org/en-US/Apps/Tools_and_frameworks/Cordova_support_for_Firefox_OS

Install firefoxos simulator:

  1. Install Firefox on PC.
  2. Run Firefox > Main menu > Tools > Web Developer > WebIDE
  3. Select Runtime > Install simulator > Install (Firefox OS 2.0)
    After install simulator
  4. Select Runtime > Firefox OS 2.0
  5. Open App > open packaged app (path: app/platforms/firefoxos/www/ )
    6 Click 'Install and Run' button.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants