Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS - is there an SDK that can convert HTML5 webapps to native?

Tags:

html

ios

native

I am working on an HTML5 webapp for computers, and I was thinking of making a mobile version.

Is there an SDK that can take HTML5/JS/CSS and convert it to a native iOS app I can upload on iTunesConnect?

The main thing that needs to work is the HTML5 Canvas... I haven't had any luck searching on Google.

like image 823
user802609 Avatar asked Sep 05 '25 03:09

user802609


2 Answers

you don't need Phonegap or any other framework, load a web view control and load html files in folder using;

NSString *htmlPath = [[NSBundle mainBundle] pathForResource:@"index" 
                                                     ofType:@"html" 
                                                inDirectory:@"/htdocs" ];

NSString *html = [NSString stringWithContentsOfFile:htmlPath 
                                           encoding:NSUTF8StringEncoding 
                                              error:nil];

[webView loadHTMLString:html 
                baseURL:[NSURL fileURLWithPath:
                         [NSString stringWithFormat:@"%@/htdocs/", 
                          [[NSBundle mainBundle] bundlePath]]]];
like image 166
Faisal Ameer Avatar answered Sep 07 '25 19:09

Faisal Ameer


http://trigger.io/ might help you.

You write your HTML5 code using the Forge JavaScript API which gives you access to native features such as the camera and contacts API.

Our cloud build service does the rest to create your native apps for iPhone, iPad, Android and Windows Phone.

Disclaimer: not associated with trigger.io in any way.

like image 42
Ivan Kurmanov Avatar answered Sep 07 '25 21:09

Ivan Kurmanov