We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Javascript Interface

Hi.

How do I get the webview from orubase on android? The method "getCurrentWebView()" returns null.

Thank you.

1 Reply

GM Gobi M Syncfusion Team January 16, 2014 01:47 PM UTC

Hi,

Thanks for using Syncfusion products..

The Orubase Tab bar application which is generated from Orubase Project wizards contains their own separate Orubase WebView for each tab. The method getCurrentWebView is used to get the current Orubase WebView in tab bar application. So, it is possible to add Custom JavaScript Interface with the existing Orubase Android Project. For SPA(Single Page Application) projects, getCurrentWebView() is not applicable and it always returns null.

We have prepared a sample application and documentation to show case “Adding JavaScript Interface for existing Orubase Project”

Could you please confirm with your requirement and provide more details if the issue is still not resolved?

Regards,

Gobi M


OrubaseWebViewDemo_a6c6590d.zip

Loader.
Live Chat Icon For mobile
Up arrow icon