Is There An Alternative To Webview?
Solution 1:
Take a look at Crosswalk. As described in its web site:
With the platform variations in the market you are forced to assume that every Android WebView works differently. There are differences in:
- Which JavaScript APIs are available
- Support and syntax for CSS properties
- How your application's interface is rendered …and plenty
more. You want to support as many versions of Android as possible, but it’s frustrating and time consuming.
There’s a better way. What if the only WebView you had to worry about was up to date with the latest version of Google Chromium? With Crosswalk, you can:
- Develop around device fragmentation
- Provide a feature rich experience on all Android 4.x devices
- Easily debug with Chrome DevTools Improve the performance of your HTML, CSS, and JavaScript
Solution 2:
I had a similar need to get an alternative to WebView.
Found GeckoView
based on GeckoEngine by Mozilla.
Pros:
- GeckoView is designed to expose the entire power of the Web to applications, and all that through a straightforward API.
- Better Performance over WebView. Far Better with performance for Graphis Intensive WebApps.
- Strong Mozilla Community behind the development.
- Capable to let you make your own Web Browser for Android.
Cons:
Your App Size will get an additional 50MB or something, as the
GeckoView
comes loaded with GeckoEngine native to your app.Fewer Examples and Tutorials on YT or Web.
Following Docs will help you get started.
Official Doc:
https://mozilla.github.io/geckoview/
101 Guide Blog :
https://www.raywenderlich.com/1381698-android-tutorial-for-geckoview-getting-started
Community Chat Forum: Ask your Questions and Join GeckoView
Community.
Solution 3:
In android 4.4, a new webview is introduced based off of chromium. However if you are developing for previous versions of android as well you can check out this library that is also based off of chromium https://github.com/mogoweb/chromium_webview with chromium, your webview will support HTML5, CSS3 and javascript
Solution 4:
You can also use Chrome Custom Tabs as a best option for handling third party Website on same app. And off course it is feature loaded. Like sharing chrome cookies, data saving option as with chrome
Post a Comment for "Is There An Alternative To Webview?"