I have an react-native app. It has a JavaScript alert in one of the webviews. It works in IOS but not android. I have changed the proguard-rule.pro file as follows
class:
-keepclassmembers class fqcn.of.javascript.interface.for.webview {
public android.webkit.WebView, startActivity, android.webkit.WebChromeClient, android.webkit.JsResult;
}
and done a build react-native run-android
but the alert is still not working in the android app. How do I do this, and what are the fully qualified class name to the JavaScript Interface. I am pretty sure I have not modified the Javascript interface in my version of the app.