I’m having trouble getting a javascript file to run from inside a UIViewRepresentable WKWebView. This is probably a simple question with a simple answer, but I cannot seem to figure this out. I’m new to Swift and iOS programming. I’d like to link to a javascript file from inside a String of HTML that is passed to a UIViewRepresentable of
Tag: wkwebview
Cordova iOS: Failed to load resource: The requested URL was not found on this server
EDIT: While i was trying the same solutions that I already tried, I got it working with “cordova.file.documentsDirectory”, it must be something that I missed last week ORIGINAL QUESTION: I’m building a Leaflet map app in Cordova 9.0.0 that needs to be able to download, unzip, delete unzip file and then access images from unzipped directory on mobile device for
WebKit userContentController:didReceiveScriptMessage: not getting called for iOS 13
I am using WKWebView for showing web content into my app but I am not able to get a message sent from JS webkit on iOS 13 devices. On previous iOS versions, it’s working as expected. Setup: WKScriptMessageHandler Delegate: From JavaScript I am calling it like this : Please let me know if anyone has come across this issue and
iOS WKWebView not showing javascript alert() dialog
I am having some trouble getting a WKWebView in iOS 8 to display an alert dialog that is called from Javascript. After creating a standard WKWebView and loading an HTML file, I have a button on the page that creates a simple alert with some text. This works in UIWebView and in Google Chrome/Safari, but does not appear to be