Handling dynamic web pages inside an APP using the browser

Hi, I want develop an APP (for Android and IOS) reusing the source code for Apache. I have no wifi connection then I want include my Apache-code inside the APP and display it with browser facility. 

How can I made this solution? Is there a sample for this application? Best regards. 

What Apache features do you need? Or do you just need to see some offline HTML content?

Rob

Ho Rob, my APP must works stand alone. HTML must ne generated dynamically buon a local web server like Apache. Best regarfs

I don’t believe you will find any apps for iOS that will run as a web server, in particular Apache with any of Apache’s normal extensions like PHP, MySQL support, etc. without the device being jailbroken and I doubt that Apple would approve such an app.  There seem to be a couple of Apache setups for Android and I can’t tell if they need rooted devices or not, but one had a note that Google Play’s terms and conditions may ban such apps in the future.

You can use Lua Sockets to listen to port 80 and implement your own web server, but I doubt you’re going to be able to build one that supports Apache type extensions without a ton of work. One person can build a simple HTTP server, but to build something with the power and flexibility of Apache and all the modules it support would take a team of people a long time to build.

Rob

I have not tried this with Corona, but with Cordova we have used Angular or Ember in the webview.

I would recommend looking into Ember. It contains a full html template engine and generates routes dynamically with its internal router. It is all Javascript / HTML and once you get the hang of it, it is very powerful. As it does all the routing internally you don’t need it to reload pages, reload html etc… it is all automatic.

You can also write custom Ember Data adapters so you can provide the website with information from a live service, or otherwise a local json file.

https://www.emberjs.com

I cannot recommend Ember enough, especially the Ember.computed functionality.

What Apache features do you need? Or do you just need to see some offline HTML content?

Rob

Ho Rob, my APP must works stand alone. HTML must ne generated dynamically buon a local web server like Apache. Best regarfs

I don’t believe you will find any apps for iOS that will run as a web server, in particular Apache with any of Apache’s normal extensions like PHP, MySQL support, etc. without the device being jailbroken and I doubt that Apple would approve such an app.  There seem to be a couple of Apache setups for Android and I can’t tell if they need rooted devices or not, but one had a note that Google Play’s terms and conditions may ban such apps in the future.

You can use Lua Sockets to listen to port 80 and implement your own web server, but I doubt you’re going to be able to build one that supports Apache type extensions without a ton of work. One person can build a simple HTTP server, but to build something with the power and flexibility of Apache and all the modules it support would take a team of people a long time to build.

Rob

I have not tried this with Corona, but with Cordova we have used Angular or Ember in the webview.

I would recommend looking into Ember. It contains a full html template engine and generates routes dynamically with its internal router. It is all Javascript / HTML and once you get the hang of it, it is very powerful. As it does all the routing internally you don’t need it to reload pages, reload html etc… it is all automatic.

You can also write custom Ember Data adapters so you can provide the website with information from a live service, or otherwise a local json file.

https://www.emberjs.com

I cannot recommend Ember enough, especially the Ember.computed functionality.