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…
![](../../users/profiles/6771685.webp)
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…
![](../../users/profiles/3213794.webp)
Vivek Shah
- 410
- 5
- 21
0
votes
1 answer
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…
![](../../users/profiles/6261022.webp)
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…
![](../../users/profiles/12378598.webp)
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…
![](../../users/profiles/5678158.webp)
Bob
- 53
- 6
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 =…
![](../../users/profiles/5345550.webp)
Fusioni Technologies
- 135
- 8
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…
![](../../users/profiles/8614296.webp)
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…
![](../../users/profiles/5330601.webp)
Hun Yong Song
- 29
- 1
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…
![](../../users/profiles/2924482.webp)
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…
![](../../users/profiles/2609779.webp)
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…
![](../../users/profiles/10238000.webp)
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…
![](../../users/profiles/10396819.webp)
Aaron
- 334
- 2
- 14