Hello, For my current project we need to display a webview(android) over the top of the current unity application. The reason we need to do this is to interface with a 3rd party’s authentication system which is web based and we need two way communication between the unity app and this web view.
I wrote an android java plugin which is able to bring up a webview over the top of the unity window, but the webview does not seem to be getting any touch inputs. I am assuming unity is grabbing these and not letting them get bubbled to the webveiw.
I also turned on the ForwardNativeEventsToDalvik setting in the Manifest.
Does anyone know what is happening or have an idea on how to solve this problem?
Thank you,
Dylan
#EDIT: I may have found the answer, but I have not fully tested it yet.
I found a library which is doing roughly what I am looking for at: GitHub - gree/unity-webview
Hi there,
is there any chance you can share your code snippet in order to display such WebView using Gree plugin ?
Would be really helpful.
Regards
I use this plugin too to display WebView inside my application GitHub - gree/unity-webview and I can capture touches from Unity scripting over WebView on Android but I can’t do that on iOS!
Anyone know how to do that? To capture touches over WebView on iOS?
@neomarian Look in their sample project (in unity-webview/sample/Assets/Scripts/SampleWebView.cs at master · gree/unity-webview · GitHub), they work around your problem by loading a click event listener into the WebView which sends a message out to Unity code (C# in their case) on every tap.
Is this plugin still working? The examples don’t seem to work for both iOS and Android?
I implemented this plugin on android. its working smooth showing url like I opened https://www.google.com. But how to close now? back button not working to close… or there is no any Close Button on it.
i have been exploring all the ways to load my custom web pages inside my app, i tried many ways to do it, like Awesomium, Html app texture, webview,etc…, But i fount only webview supports android platform.
i successfully loaded my web pano’s,. but, as these pano’s contains 6 images warped around to create pano effects.
i’m able to load only 1 side image at once & all the other sides get disabled, or its getting scatters in the middle of 2 images.
panorama: http://3d-panoramic.s3.amazonaws.com/2D_3D_Express/Draft/LevelOne/PROMETHEUS_REAL_ESTATE_GROUP_INC/11CA_1X1_853/default.html
please suggest any solution
There is actually a Unity Store Asset available right now that I found:
It actually works too! First Android webview that can be placed in 3D space. Took me long enough to find it 
1 Like
I second @gbjaanes , I’m also using Unity asset Android VR Webview Texture 1.1 by Jerome for a Gear VR Unity project and it shows up alright (you can’t test this webview in Unity editor though, it only works on the device as of 2017 March, but he says he’ll add that in the future).
FYI - that asset’s no longer in the store, so my team looked around for alternatives and landed on this 3D webview plugin for Android and iOS.