HTML 5 App

I am making a social networking website and I want it to look good on the Iphone. Many users want an App but I thought it would be easier to have an HTML 5 website that linked inside the app. The app would be on the Appstore but it would just display an HTML 5 website in full screen mode. Or would it be easier to just program an entire app and interface it with my web server? [import]uid: 82872 topic_id: 26089 reply_id: 326089[/import]

Apple probably won’t approve it. They’ve been cracking down on apps that are just web browsers for a site lately.
[import]uid: 19626 topic_id: 26089 reply_id: 105642[/import]

What would be the best (easiest), building the app in Corona or Xcode? Apple will most likely decline the HTML 5 app but I would assume that it would be accepted on the android market? [import]uid: 82872 topic_id: 26089 reply_id: 105646[/import]

I think you mis-understood me. Apple will likely reject any “Native App” that is just a view of a website. Unless your HTML5 app looks and feels like an app and not just an RSS feed or a webview of your site, it probably isn’t going to fly.

If you want to build something that looks like a mobile app, feels like a mobile app, then Apple will likely approve it.
[import]uid: 19626 topic_id: 26089 reply_id: 105652[/import]

I understand, would it be easier to make an app (that is fully functional, not using HTML 5 at all) with the corona SDK or using Xcode? [import]uid: 82872 topic_id: 26089 reply_id: 105734[/import]

I did exactly what you describe - an “app” that basically launches a website in native web view. Launched it on the iTunes store 2 years ago, and never any problems with rejection or etc.

I used the native SDK since it really wasn’t that much code… but I’d probably try using Corona if I had to do it again (or make another one).

I’d be interested to hear more about apps that get rejected for doing this, I wasn’t aware it could be an issue. [import]uid: 49447 topic_id: 26089 reply_id: 105735[/import]

I am just curious what the name of your app is? I am curious to see how well HTML 5 runs on the iPhone in full screen mode. I will most likely make the app legitement using the corona SDK but I did not know if it would be easier to program in Xcode. [import]uid: 82872 topic_id: 26089 reply_id: 105737[/import]

http://itunes.apple.com/us/app/floridaevacuates-mobile/id333632060

Released in 2009, so it’s certainly not HTML5, however it really just launches a native webview ui with the mobile site address. Apple hasn’t had any objections to the way it works.

When you say HTML5, that usually means you are using canvas, javascript, and/or CSS3. I can’t vouch for any of that, but it should be easy enough to test. [import]uid: 49447 topic_id: 26089 reply_id: 105755[/import]

That app runs pretty fast, I thought that it would lag more and take longer to load. I am using HTML 5 Game Maker, it is used to make HTML 5 games but it also works extremely well for websites. It makes it easy to implement animations and features of HTML 5.

As it stands now, I am most likely going to make the website in HTML 5 and run it through an app. If it does not work well or if Apple does not approve it, I will just program the entire thing with the Corona SDK. [import]uid: 82872 topic_id: 26089 reply_id: 105758[/import]

In Corona you can just create a full-screen WebView, or add in your own custom navigator buttons around a smaller WebView:
http://developer.anscamobile.com/reference/index/nativenewwebview

Although if you really do just want a full-screen WebView, you could go MUCH more lightweight by doing it directly in Objective-C, where Apple will still provide the WebView class to use to render a full-screen WebKit view. As-is the part of Corona you would be using is just a set of helper functions for the Objective-C classes, and throwing out the rest of the engine.

Obj-C class: http://developer.apple.com/library/ios/#documentation/uikit/reference/UIWebView_Class/Reference/Reference.html

You could also try to work with the Chrome library, which looks to support a larger set of HTML5 than iOS’s WebKit (like WebGL). Chrome is what powers Google’s Chrome browser/OS. This however is more advanced, and would probably take more time than you’d save using HTML5, at least at first. [import]uid: 134101 topic_id: 26089 reply_id: 105779[/import]

I must be missing something here, I tried the code below and it gave me a runtime error,

local webView = native.newWebView( 0, 0, 320, 480 ) webView:request( "http://www.anscamobile.com/" ) [import]uid: 82872 topic_id: 26089 reply_id: 106248[/import]

I have seen that nowadays html5 is used in almost all the mobile apps, to make it lighter and better,… [import]uid: 163120 topic_id: 26089 reply_id: 115124[/import]

Peach - please get your spam hammer out, this is the second shameless plug from crusty.mobilespect I’ve read this morning.

Some people have no shame. [import]uid: 33275 topic_id: 26089 reply_id: 115127[/import]

Hey SegaBoy,

Yeah, they posted 4 or 5 things - now cleaned up and ban hammered!

Peach :slight_smile: [import]uid: 52491 topic_id: 26089 reply_id: 115131[/import]

@producerism you got your app in and approved prior to the crackdown which started late in 2010 if I remember correctly (or sometime in 2011) [import]uid: 19626 topic_id: 26089 reply_id: 115142[/import]