目录

What should I do if a white screen is displayed during WebView offline loading?

Symptom

When the WebView component loads HTML and calls the full-screen API, a white screen is displayed during the sixth redirection. When the offline component of the latest feature is used, the text tags in the offline component are displayed properly, but the HTML in the WebView component is displayed abnormally even though the component tree contains web nodes. If the full-screen API is not called, the page redirection is normal and no white screen is displayed even if the page is redirected for multiple times.

Solution

When a Web instance is created and loadurl is called, set the onActive method of WebController to activate the Web instance. Call related APIs in the application. Since frameNode holds the reference of the Web component, you must call frameNode.release() to release resources first to avoid memory leakage.