Questions tagged [wkwebviewconfiguration]

173 questions
0
votes
0 answers

Play wkwebview audio trough ear speaker only

I am trying to develop an application that uses wkwebview and WebRTC to make voice calls, the app loads a wkwebview with the web page that uses webrtc and when it plays the audio of the calls it does so through the main speaker of the Iphone instead…
0
votes
1 answer

Disable image selection in WKWebView

I use a WKWebView to display web content in my app. I want to make the content to feel as native as possible. I've already added this CSS to the web site loaded in the WKWebView: * { -webkit-user-select: none; -webkit-touch-callout:…
themenace
  • 2,601
  • 2
  • 20
  • 33
0
votes
1 answer

Create multiple webviews in a for loop swift

I am attempting to display 5 web views and I would like the web views to be created in a for loop. The code I am currently using creates only one web view where it should create one for every url in pages. Any help would be appreciated! import…
0
votes
1 answer

Need to get information about video when user tap on Iframe embedded on WKWebView

As in image, I have blog that contain video and what I want is when ever user tapped on it I need total video information like duration, title, etc.
0
votes
0 answers

wkwebview not respond on print action in swift iOS

WKWebview not responding for print function its working fine while trying from the browser but it's not working with WKWebview
0
votes
2 answers

How to use WKWebView inside UICollectionViewCell?

I want to load HTML String in UICollectionview. Each collectionviewcell has WKWebview. When we try load more uicollectionviewcell apps get crashed without any error displayed. I further looking in memory tab and in memory page other process memory…
vinoth87
  • 200
  • 1
  • 2
  • 16
0
votes
1 answer

Can't get string data from WKUserContentController didReceive WKScriptMessage

My method is called: func userContentController(_ userContentController: WKUserContentController, didReceive message: WKScriptMessage) { print("message.body: \(message.body)") if let messageBody = message.body as? [String: Any] { …
Async-
  • 3,140
  • 4
  • 27
  • 49
0
votes
1 answer

WKWebView freezing the app iOS 14, Failed to present a context menu for configuration with identifier _UIDatePickerCompactEditor

Presenting WKWebView to show web form, webview load successfully with following error "Error Domain=WKErrorDomain Code=5 "JavaScript execution returned a result of an unsupported type" UserInfo={NSLocalizedDescription=JavaScript execution returned a…
Ammad
  • 21
  • 1
  • 1
  • 7
0
votes
1 answer

How to dynamically pass a value into an iFrame using WKWebView in iOS

I'm trying to use an iFrame with WKWebView in order to load an embedded audio player that the streaming (host) website recommends. When I pass the sound-track id dynamically, I get an error saying that the audio is unavailable or has been deleted.…
zaam
  • 287
  • 1
  • 2
  • 14
0
votes
1 answer

Detect UI element of website in WKWebView iOS

If I am open website in WKWebKit, and this website have a banners with ads I can detect link of this banners when click on it? For example, if I am open this website ( https://123moviesfree.net/home ) on google chrome on PC and I am select any…
Ice
  • 680
  • 1
  • 10
  • 23
0
votes
1 answer

Detect when, iframe(AVPlayer) of video player inside wkwebkit

When I am open any website with movie inside WKWebKit and press on players this movie will be open inside some player, where I can pause, remove etc. My question How I can detect when this iframe(window or player, I don't know how it is named) is…
Ice
  • 680
  • 1
  • 10
  • 23
0
votes
1 answer

How to ask users to accept or deny cookies for WKWebView website in Objective-C

Trying to ask users to accept 3rd party cookies with objective C in WKWebView for iOS. Here's my current code: -(void) viewDidLoad { [super viewDidLoad]; webView = [[WKWebView alloc] initWithFrame:[[self view] bounds]]; NSURL *url =…
0
votes
1 answer

Adding a click event listener on WKWebView not working

I am working on an app that is using a WKWebView and I am trying to add an event listener when the user clicks on a button on the web page. The button as no id so I am working with the class. I am able to set it up properly on chrome using the…
Reimond Hill
  • 4,278
  • 40
  • 52
0
votes
1 answer

WKWebKit Implementation (Objective-C)

Trying to display a web page in iOS, and I am having trouble implementing WKWebkit. ViewController.h @import WebKit; @interface ViewController : BaseViewController @property (retain, nonatomic) WKWebView…
anks
  • 3
  • 3
0
votes
1 answer

Can WKWebView load local HTML5 for writing?

I'm trying to do something like hybird with WKWebView. I finished the HTML5 pages, and let it displayed in WKWebView in a macOs App. All things go well, but I can't input any character into the field in the macOs WKWebView. My question is: Is there…
Alex
  • 1