We have built an online web app and would now like to package it for ipad & iPhone. Ideally, all we need is a full screen browser window like an iframe that will load the full app from the web. Obviously we could do it in the browser but we need our own launch icon on the desktop as well as removal of the browser address bar. I've heard of phoneGap & Appcelerator but I'm unsure if this setup is possible using these platforms?
Is there a simple method for achieving this?
Are there any problems or security issues on iOS I need to look out for?
A lot of web application are on the app store. They just put a UIWebView in an empty app and point it to the web app. Everything will run just like it does in Safari, but there will be no toolbars, etc. This will require your to have Xcode and a membership to the developer program.
If you don't want to go through the app store, you can still set up your app so that you can save it to your device and it will run as though it were native. Here is a link with an example of that:
http://sixrevisions.com/web-development/html5-iphone-app/
So you have to decide which is best for you.
Native iOS app with UIWebView
"Offline" HTML5 App
In many cases, user experience will be identical for each option once the app is on the device. Weigh the options and figure out what's best for you.
Directions for setting up native iOS app with UIWebView
viewDidLoad
right under above the line [super viewDidLoad]
.UIWebView *webView = [[UIWebView alloc] initWithFrame:self.view.frame]; NSString *urlAddress = @"http://www.google.com"; NSURL *url = [NSURL URLWithString:urlAddress]; NSURLRequest *request = [NSURLRequest requestWithURL:url]; [webView loadRequest:request]; [self.view addSubview:webView];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With