Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an alternative to webview? [closed]

I have an app which makes pretty heavy use of webview. My requirements are to be able to look at the html and to inject javascript into pages being loaded, even iframes. I've accomplished this with the webview that comes with android but it just isn't working great.

So are there other projects out there that provide the same html5 browsing experience but are a bit more developer friendly? Would it maybe be possible to take the open source web view code and build my own or is that just a crazy idea?

Thanks.

like image 983
casolorz Avatar asked Mar 17 '14 16:03

casolorz


People also ask

Is there any alternative for WebView in Android?

Alternatives to WebView If you want to send users to a mobile site, build a progressive web app (PWA). If you want to display third-party web content, send an intent to installed web browsers. If you want to avoid leaving your app to open the browser, or if you want to customize the browser's UI, use Custom Tabs.

Did Google fix WebView?

Some apps were crashing for Android users, but Google has fixed it. The issue was due to a system component called Android System WebView that lets Android apps display web content. Google now has a fix that requires users to update Android System WebView to version 89.0.

What happens if I force stop Android System WebView?

Many versions will show Android System Webview as disabled on default as its best for the device. By disabling the app, you can save up battery and the background running apps can perform faster.


2 Answers

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
like image 178
Ali Behzadian Nejad Avatar answered Sep 21 '22 17:09

Ali Behzadian Nejad


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.

https://chat.mozilla.org/#/room/#geckoview:mozilla.org

like image 20
Rahul Shyokand Avatar answered Sep 20 '22 17:09

Rahul Shyokand