Building an HTML5 iOS app with UIWebView

前端 未结 3 855
轻奢々
轻奢々 2021-02-02 15:52

I have a client who suggested we simply wrap an HTML5 app as a native iOS app by just creating a UIWebView and offloading all of the application-logic to the HTML5 app. This wo

相关标签:
3条回答
  • 2021-02-02 16:30

    Any pitfalls you would experience as a web app you are likely to still experience. Don't attempt to do any OpenGL sort of app but if it's more like a webpage then this should work out fine for you.

    However, using some frameworks out there you are likely to get a slightly "richer" experience in that you are able to access native phone tools that a web app isn't allowed to use (vibrate, GPS, etc.)

    Take a look at PhoneGap. They lack extensive documentation but there are quite a number of people using it and have already 'ran it through the gauntlet', you could say.

    All that said, if you don't want to deal with the marketplaces (iTunes, Android Marketplace, etc) you could always do an offline HTML5 app. Where the user goes to the webpage and it caches all the files that are required to run the app offline. This is a similar approach to what Google was doing with Google Voice when it was rejected from the iTunes store.

    0 讨论(0)
  • 2021-02-02 16:37

    HTML5 features within a WebView are really great (and growing). You can do almost everything.

    But if you want use some special features inaccessible via HTML5 (or include some 3rd-party ObjC libraries), you can setup a very simple interaction between ObjC and JavaScript.

    0 讨论(0)
  • 2021-02-02 16:48

    Trigger.io is an option too. Much better than Phonegap these days. Only adding as this page is heavily google-SEOed.

    0 讨论(0)
提交回复
热议问题