await webViewController.evaluateJavascript(source: """
$(document).bind('DOMSubtreeModified', function () {
if($("a[href^='/GenericUpload/GetFile']").length > 0){
$("a[href^='/GenericUpload/GetFile']").off('click').on('click', function (){ window.flutter_inappwebview.callHandler('MobileAppDownload',$(this).attr('href')); });
}}); """);
This code find a button in my app and execute my action. this code work once and after that not working. MUST uninstall app or clear data and cache in android to work again. this code work in IOS normally.