GithubHelp home page GithubHelp logo

Comments (2)

mobratil avatar mobratil commented on August 15, 2024

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?

from sockets-for-cordova.

ettoolong avatar ettoolong commented on August 15, 2024

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.

from sockets-for-cordova.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.