Skip to content Skip to sidebar Skip to footer

Proguard Stops Javascript In Webview From Working

I have a class JSBridge (an inner class) which is a javascript interface: private class JsBridge implements JsCallback { /** * @param handlerName method required * @

Solution 1:

If your Javascript interface methods are annotated with @JavascriptInterface, you can preserve them with

-keepclassmembers class * {
    @android.webkit.JavascriptInterface <methods>;
}

Post a Comment for "Proguard Stops Javascript In Webview From Working"