05/15/2024 15:19:45

Problem description

After the webpage is opened, the "Return" and "Close" buttons are not displayed and the toolbar cannot be found.

Causes of the problem

If the page is opened in full screen, buttons and toolbars will be hidden. It is necessary to check whether the page is displayed in full screen.

Solution

Check whether the page is displayed in full screen. You can check it with the following two methods:

  1. Check whether the full-screen setting parameter is passed with true when the interface is invoked:
    When V5 built-in WebView invokes OpenUrl interface, the full-screen setting parameter is the isFullScreen parameter. The embedded WebView first takes the isFullScreen parameter as the full-screen setting parameter. If true is not passed in the isFullScreen parameter, it is needed to take both withDialog and the WEBVIEW_IS_FULLSCREEN parameter among configuration items as the judgment base and to check whether true is passed in the WEBVIEW_IS_FULLSCREEN and withDialog parameter.
    When V3 built-in WebView invokes WGOpenUrl interface, the full-screen setting parameter is the fullScreen parameter.

  2. Check whether to set the full screen by invoking JS interface:
    V5 built-in WebView invokes the setFullScreen interface to set the full screen, and V3 built-in WebView invokes the WGSetFullScreen interface to set the full screen.

Example images for non-fullscreen and fullscreen effects:

Image description



Copyright © 2024 MSDK.
All rights reserved.

results matching ""

    No results matching ""