How can i use web browser widget in android

i used ue 4.10 version

i will use web browser widget

in ue4 editor it’s work

but in android app shut down with error log

how can i use web browser widget in android ?

/// below error log

12-02 10:18:14.421: D/UE4(11593): [2015.12.02-01.18.14:420][ 0]LogBlueprintUserMessages: [Web_C_0]
12-02 10:18:14.423: W/cr.BindingManager(11593): Cannot call determinedVisibility() - never saw a connection for the pid: 11593
12-02 10:18:14.428: D/AndroidRuntime(11593): Shutting down VM
12-02 10:18:14.429: E/AndroidRuntime(11593): FATAL EXCEPTION: main
12-02 10:18:14.429: E/AndroidRuntime(11593): Process: com.YourCompany.MyProject, PID: 11593
12-02 10:18:14.429: E/AndroidRuntime(11593): java.lang.ClassCastException: android.widget.FrameLayout$LayoutParams cannot be cast to android.view.WindowManager$LayoutParams
12-02 10:18:14.429: E/AndroidRuntime(11593): at com.epicgames.ue4.WebViewControl$3.run(WebViewControl.java:80)
12-02 10:18:14.429: E/AndroidRuntime(11593): at android.os.Handler.handleCallback(Handler.java:739)
12-02 10:18:14.429: E/AndroidRuntime(11593): at android.os.Handler.dispatchMessage(Handler.java:95)
12-02 10:18:14.429: E/AndroidRuntime(11593): at android.os.Looper.loop(Looper.java:148)
12-02 10:18:14.429: E/AndroidRuntime(11593): at android.app.ActivityThread.main(ActivityThread.java:5417)
12-02 10:18:14.429: E/AndroidRuntime(11593): at java.lang.reflect.Method.invoke(Native Method)
12-02 10:18:14.429: E/AndroidRuntime(11593): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
12-02 10:18:14.429: E/AndroidRuntime(11593): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
12-02 10:18:14.430: W/ActivityManager(14968): Force finishing activity com.YourCompany.MyProject/com.epicgames.ue4.GameActivity
12-02 10:18:14.489: I/OpenGLRenderer(14968): Initialized EGL, version 1.4
12-02 10:18:14.949: W/ActivityManager(14968): Activity pause timeout for ActivityRecord{c50dc33 u0 com.YourCompany.MyProject/com.epicgames.ue4.GameActivity t88 f}

now 2022 its not get error but its totally black.
because on android web browser contents in webbrowser can’t render to world scene screen.

Epic devs not want to fix this issue over 7 years. sad :cry:

please some one fix:
Engine\Source\Runtime\Web Browser\Private\Android\Android Web Browser Widget

please fix unreal web browser plugin

1 Like

Is there anyone who has taken a bite on that issue yet?

The only change I noticed in the file Engine\Source\Runtime\WebBrowser\Private\AndroidAndroidWebBrowserWidget.cpp between 4.27.2 and UE5.1 is related to VideoTexture.

Just found that the bug seems to be fixed and will be released for Unreal Engine 5.2 :
3D WebViewer shows white screen on Oculus 2

Note: I test it on UE5.1 and is still a bug

2 Likes