
#Html app wrapper install
But if you use the web view engine and a JavaScript library through a simple, you get all that for free, and you don’t need to install any 3rd party native libraries.
#Html app wrapper generator
You may want to quickly incorporate features that will otherwise require a huge 3rd party library.įor example, to incorporate a QR code image generator natively, you will need to install some 3rd party library which will increase the binary size. No need to install additional code just to do something that you can do for free, which brings us to the next point. In this case it makes sense to use the built-in web engine ( WKWebView for iOS and WebView for Android) instead of installing a 3rd party library that essentially “emulates” Websocket. For example, Websocket is a web-native feature that’s designed for the web environment. Some parts of your app may be better implemented using the web engine.

Whenever you hear someone talk about the future of mobile apps, you would probably hear them talk about “Will it be the HTML5 approach that wins out? Or will it be native?” No app development framework has tried to fundamentally solve this problem of “seamless integration of web view into native apps” because they’re all focused on picking either 100% native or 100% HTML5 side. The chat input triggers a JavaScript function inside the QR code web app that re-generates the image. A native chat input component at the bottomĪll this can be described by just tweaking some of the JSON markup attributes we saw above.įinally, note that the QR code changes as you enter something from the chat input.A Web view, which embeds a QR code generator web app.Native navigation header, complete with built-in transition functionality.All you need to do is create a seamless 2-way communication channel between the web view and the app, so the parent app can trigger any JavaScript functions inside the web view and the web view can reach outside to call native APIs. Great question, because that’s the main topic of this post. And the transition is automatically native without you having to rewrite the website using any APIs.īefore I explain how, you may ask: “That’s cool, but can you do anything meaningful other than just displaying the web page in a native app frame?” Notice how I’ve embedded a web page but the rest of the layout is all native UI components, such as the navigation header and the bottom tab bar. Here’s what a minimal example looks like in action: Just bring your existing website as is, and blend it into a native app with a simple URL reference.Īnd what if, just by tweaking the JSON markup a bit, you can access all the native APIs, native UI components, as well as native view transitions out of the box?

What if I told you the 7 lines of JSON above, colored in orange is all you need to turn a website into a mobile app? No need to rewrite your website using some framework API just to make it behave like a mobile app. By Ethan A New Approach for Blending Web Engine into Native Apps
