• Webview is a WebKit-based engine that parses DOM elements and displays HTML page controls. It works in the same way as a browser display page, so it can be treated as a browser (Chrome is also based on webKit,Mozilla) Firefox is based on Gecko.)

  • What is webView mainly used for? Or what are the requirements for using webView?

    • For example, when an HTML page is displayed on a computer, you can browse the page by opening the browser. At the system level, if there is no webView support, it is impossible to display HTML pages, so the role of WebView is used for mobile phone system to display HTML interface

  • How does a native app call an HTML page?

    • Native apps load HTML pages (there are many ways to load a page, such as loading an HTML file written by Betty, or placing a file on the server)

    • After loading, the display is rendered by webView. If the system does not have WENVIEW, it cannot display HTML

      Pages are not only displayed, but sometimes interact with each other. For example, buttons in the HTML interface need to call something native to the system (such as photos, system files, photo albums, etc.). The native side is responsible for maintaining the interface of HTML calls and then returning it as needed (the native side acts as a server, and the HTML acts as a client).

  • What are the benefits of using webView?

    • When the page layout needs to be updated and the business logic changes, if it is a native APP, it needs to modify the front-end content, upgrade packaging, and re-release to use the latest one

    • In the webview mode, you only need to modify the HTML code or JS file (if it is obtained from the server, you only need to complete the deployment of the new file). After the user refreshes, you can use the updated one, without downloading and installing the upgrade.