Inspectopedia Help

Missing @JavascriptInterface on methods

Missing @JavascriptInterface on methods

As of API 17, you must annotate methods in objects registered with the addJavascriptInterface method with a @JavascriptInterface annotation.

Issue id: JavascriptInterface

https://developer.android.com/reference/android/webkit/WebView.html#addJavascriptInterface(java.lang.Object, java.lang.String)

https://goo.gle/JavascriptInterface

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for Android 2023.3, Qodana for JVM 2023.3

Plugin:

Android, 2022.3.1 Beta 2

Last modified: 13 July 2023