1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How can i build an HTML5 app that will work the same on Desktop and IOS ?

Discussion in 'HTML & Website Design' started by Sahkan, Apr 21, 2015.

  1. #1
    I need to have the ability to access files in the client side ( so i need to use a framework like PhoneGap for the API ).
    However, phonegap works only for Mobile and not for desktop, what is the standard these days of doing this kind of things ?
    i'm sure i'm not the first one to do it.
     
    Sahkan, Apr 21, 2015 IP
  2. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #2
    You can't access files directly on client on a web-based HTML5-app. You'll have to work with the user's OS and have an "add file" or similar.
     
    PoPSiCLe, Apr 21, 2015 IP
  3. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,998
    Best Answers:
    253
    Trophy Points:
    515
    #3
    You might want to look at node-webkit. It can provide a lot of the same functionality (though you'd need different code to use node.js instead of whatever it is phonegap uses) though it does require that node-webkit be installed on the client computer.

    Normally HTML crapplets are VERY restricted in what they are allowed to do on desktop from an utter and complete lack of trust of code being run from the web; I'm actually a bit surprised there aren't more issues on mobile where HTML/JS/CSS are being used to make crapplications with access to things that web delivered code should NEVER have been allowed to have access to in the first place.

    From a security standpoint, things like node-webkit and phonegap make me cringe; it's kinda neat that you can use those technologies to make applications, but it starts to become a question of not "can we do this" so much as it should be "should we be doing this?"

    Reminds me SO much of the stuff Microsoft added to IE in the 90's with ActiveX and making well documented bindings to Trident for application developers -- and look how well that turned out!
     
    deathshadow, Apr 21, 2015 IP