I have a native Android app that has a webView that loads a web page I have no control over.
In app I need to track/detect a “MessageEvent” that happens when a button is clicked on this page within the webView.
Scenario: User presses a button within the webView which fires off a "MessageEvent", When this “MessageEvent” is detected, a method in the Java/Kotlin code needs to be called, either through a listener that waits for this “MessageEvent” or another way(irrelevant how the method is called).
My main concern is how to detect this javascript “MessageEvent” event within my Java/Kotlin code.