开发者

Can I 'frame' a web-app in an iPhone app [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

This question does not appear to be about programming within the scope defined in the help center.

Closed 5 years ago.

开发者_高级运维 Improve this question

I have a web app (HTML/JS/CSS) and would like to distribute it via the App store to iPhone users.

Am I able, from an App Store rules standpoint, to create a basic app which has a UIWebView (or via other method) which points at my web-app. The web-app would then load over the web each time the app is opened.

If not, am I able to do similar but load the 'web-app' from local HTML/JS/CSS files in the native app?


No, this application will be rejected.

From App Store Guidelines:

Apps that are simply web clippings, content aggregators, or a collection of links, may be rejected

Here is the link


It's an old question but no answer has mentioned PhoneGap a.k.a. Apache Cordova which I believe may be interesting for anyone who finds this question.

Essentially it's a software that lets you write mobile applications for iOS, Android, Blackberry, Windows Phone, Palm WebOS, Bada and Symbian in HTML, CSS and Javascript.

Quoting PhoneGap article on Wikipedia:

It enables software programmers to build applications for mobile devices using JavaScript, HTML5 and CSS3, instead of device specific languages such as Objective-C. The resulting applications are hybrid, meaning that they are neither truly native (because all layout rendering is done via web views instead of the platform's native UI framework) nor purely web-based (because they are not just web apps, but are packaged as apps for distribution and have access to native device APIs).

There's a lot of useful info on the Getting Started Guides.


http://matt.might.net/articles/how-to-native-iphone-ipad-apps-in-javascript/

You can try this link, it has really good details on how to convert any web app to an apple-looking format with different libraries such as jqtouch.

But to answer your orginial question: I tried to submit an app that had a webview and mobile interface and it didnt get approved.


Max is correct.

It'd be reasonable to assume that the reason you want to turn the Web App into an App Store app has to do with

  1. Distribution
  2. "Look-and-feel"

It should be noted that while you won't be able to get quite the distribution you would see from the app store, there are some solutions to handle both of those issues, and they kind of dovetail. Specifically, you can imbue your Web App with special Meta data that causes it to behave differently when an iPhone user bookmarks your app as a Homescreen Bookmark. This includes doing things like attaching a special icon to use on the homescreen, styling the iPhone's status bar, removing the "browser chrome" like the URL bar, and incorporating a splash screen. Basically, your app will "look and feel" native because the Browser components will become abstracted out. Finally, you can augment distribution of your app by placing it on services such as OpenAppMkt.

Here is a decent layman's terms tutorial on how to go about adding iPhone metadata to a web app.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜