Questions tagged [wkwebviewconfiguration]

155 questions
0
votes
1 answer

WKWebView is not loading webpage on simulator

I am loading one web URL in WKWebView. I added network transportation layer and all other suggestion provided in different thread. But Working perfectly fine on Device bot not working on simulator. Please let me know what I am missing ? let…
pankaj nigam
  • 311
  • 6
  • 7
0
votes
0 answers

WKWebView gives exception Thread 1: signal SIGABRT while using location

I have implemented WKWebView in my App. I want to show a website in it which uses the location like https://www.google.com/maps. I have added the required location usage key-value pair in info.plist. When I first open the app there is a prompt…
Vivek Shah
  • 410
  • 5
  • 21
0
votes
1 answer

IOS - WKWebview gets null url in decidePolicy when second clicking the same button

I have a WKWebview with a button that downloads a pdf, the button link is as follows: I…
0
votes
1 answer

URL is not opening in WKWebView in swift

I have a requirement to open the URL in WKWebView and login to the portal. As user logged in successfully after that I have to perform download operation from WKWebView, Everything is working fine but it's opening in external safari browser but as…
Sanjay Mishra
  • 531
  • 5
  • 10
0
votes
1 answer

Argument Type does not conform to expected type 'WKScriptMessageHandler'

I'm trying two-way integration between Swift and Javascript interfacing with SwiftUI. Here is interfacing WebKit with SwiftUI. import SwiftUI import WebKit struct ggWebView : UIViewRepresentable { let filePath: String func…
Lonaso
  • 15
  • 5
0
votes
1 answer

Wkwebview 100% packet loss preset

I have an asynchronous call to refresh my cookies in a new wkwebview. public override func viewDidLoad() { super.viewDidLoad() let cookies = cookieService.getCookies(forDomain: urlService.getTopLevelDomain()) …
0
votes
0 answers

WKWebView not loading URL

I am trying to get WKWebView working, but it just won't load my URL. It loads https://apple.com, but no other URL. This is the code I have in my ViewController.swift: import UIKit import WebKit class ViewController: UIViewController, WKUIDelegate…
Bob
  • 53
  • 6
0
votes
1 answer

change margin for

I wanted to reduce the space in the HTML string. below is the code is am using NSString *headerString = @"
javascript
ios developer
  • 3,057
  • 2
  • 43
  • 93
0
votes
0 answers

iOS Swift WKWebView Maintain User after login at app level

I am loading a url on webview, in which user will have to login. I am making a request by following way: let urlStr =…
0
votes
2 answers

How to fix loading images in .html by WKWebView on iOS device (UniWebView 3, Unity)?

I use UniWebView 3 plugin for Unity for display local .html files. This plugin use WKWebView which does not load local images in .html on iOS device. But .css and .js files succesfully loads (which are in header). In Unity editor images are show…
Bodix
  • 184
  • 2
  • 5
0
votes
0 answers

What is the configuration to be inspectable iphone's inner app's WKwebview?

I'm not a swift developer, but javascript developer. As far as I know, to inspect the WKWebView by my iMac's safari, there's gotta be some configurations for WKWebView. So, that can make to be able to inspect my WKWebView. But I don't know exactly…
0
votes
0 answers

Cocoa Swift: How to ensure WKWebView will load url request

I'm implementing an WKWebView but when there is an issue with the network such slow network connection the WKWebView loads blank page. Here is my implementation: func loadWebView() { if let url = URL(string: self.urlLbl.stringValue){ let…
user2924482
  • 6,844
  • 16
  • 65
  • 133
0
votes
0 answers

How to identify download in wkwebview

I am working on WKWebView and want to support file downloading and displaying in Quick Look. Below is the format of html tag < a href=https://abc/p/docs/DownloadTest.xlsx>DownloadTest.xlsx< /a>" In Android: The above code is working fine in…
iOS_Developer
  • 455
  • 4
  • 14
0
votes
1 answer

How to clear already registered urlSchemeHandler from WKWebViewConfiguration

I have added custom urlSchemeHandler for my WKWebViewConfiguration. I am maintaining a common WKWebViewConfiguration instance across the app and is being used in multiple places. If I try to add a scheme and if it is already added the app is…
Vinay Kiran
  • 319
  • 3
  • 14
0
votes
1 answer

How to run function before WKWebView finishes loading?

I'm creating a Swift iOS project that has multiple WKWebViews that display external websites. Some of these websites I don't have administrative access to, so I use some code to hide a div class. This works fine, but the element is hidden AFTER the…
Aaron
  • 334
  • 2
  • 14