Questions tagged [wkwebview]

A WKWebView object displays interactive web content. It is provided by Apple's WebKit which is available for macOS, iOS and tvOS as well.

A WKWebView object displays interactive web content. It is provided by Apple's Open Source Project WebKit and is available for macOS, iOS and tvOS as well.

Links:

3852 questions
2
votes
1 answer

WKWebView transition of new page

I am building a native iOS wrapper for a web site that looks and behaves like a magazine. It will have long scrolling pages but the user can also swipe between chapters. So, what I would like to do is load a new HTML page but have it transition in…
Lee Probert
  • 10,308
  • 8
  • 43
  • 70
2
votes
1 answer

How to get browser UserAgent string from iOS 8 onwards?

Is there any other ways to get iOS browser UserAgent string other than using the following methodology? Please help. WKWebView *webView = [[WKWebView alloc] initWithFrame:self.view.bounds]; [webView loadHTMLString:@""…
arango_86
  • 4,236
  • 4
  • 40
  • 46
2
votes
1 answer

WKWebView redirection issue compared to UIWebView

I am updating a UIWebView to wkWebView for the first time, There are a few URLs which I was using with UIWebView that are not working properly with wkWebView. For Example: There is a log-in URL, which, in a `UIWebView', once I logged in, would…
Nikhilesh
  • 21
  • 5
2
votes
0 answers

How to avoid WKWebView auto-resizing it's contentSize

I use WKWebView. The content size is adjusted with header meta like below: " The content size is okay if it's height…
morizotter
  • 1,926
  • 2
  • 24
  • 34
2
votes
1 answer

How does cacheDisplayInRect work internally?

How does [NSView cacheDisplayInRect:(NSRect)rect toBitmapImageRep:(NSBitmapImageRep *)bitmapImageRep] work internally when writes the bitmap data to the bitmapImageRep? E.g. does it traverse and access the CALayer layer of all the subviews and…
Robin Andersson
  • 5,150
  • 3
  • 25
  • 44
2
votes
0 answers

Path don't work with soundjs + CordovaAudioPlugin

I use soundJS that works great, but when register the CordovaAudioPlugin I have problems with the path and/or safety! :( Paths Web / Ripple - disable the plugin to work Android - "file:///android_asset/www/" then work fine IOS - try…
p3c
  • 133
  • 7
2
votes
0 answers

How to open WKWebView target='_blank' links externally (OS X)?

I'm trying to have a WKWebView in my Mac app (Objective-C) open links with _target='_blank' externally in the default web browser (i.e. using [[NSWorkspace sharedWorkspace] openURL:aURL]). I've read two similar questions (1, 2) but the solutions…
Seb Jachec
  • 3,003
  • 2
  • 30
  • 56
2
votes
1 answer

Where/how to manually dispose observer of WKWebView estimatedProgress

I have been trying to track the estimated loading progress on a WKWebView using KVO on the "estimatedProgress" property in a Xamarin ios UIViewController. I add an observer like this: public override void ViewDidLoad() { base.ViewDidLoad(); …
Mikael Gyth
  • 427
  • 3
  • 16
2
votes
1 answer

WKWebView suppressesIncrementalRendering

I have set suppressesIncrementalRendering = NO; but WKWebView rendering slower than UIWebView. At UIWebView, it appear the title first, than load images fully to appear images,at last , the title and images appear together. In WKWebView, the…
zypsusu
  • 23
  • 1
  • 6
2
votes
1 answer

iOS 9 WKWebView yields "failed to load resource: cancelled" where iOS 8 doesn't

I'm working on an app that supports iOS 8 and 9, using WKWebView for some views in my app. For the time-being I've whitelisted my site and subdomains in ATS (awaiting some SSL cert changes). So I don't think what I'm going to describe is related to…
Mason G. Zhwiti
  • 6,444
  • 11
  • 61
  • 97
2
votes
2 answers

WKWebView - Failed to load resource: Origin null is not allowed by Access-Control-Allow-Origin

I trying to read my local JSON file on IOS WKWebview. However Failed to load resource: Origin null is not allowed by Access-Control-Allow-Origin. I'm using UIWebview before and it's work fine. However when i change to WKWebview this error happen. …
kaneyip
  • 1,237
  • 1
  • 17
  • 21
2
votes
1 answer

Record audio using getUserMedia when the HTML page runs inside WKWebView or UIWebView in an iOS app?

Is it possible to record audio using getUserMedia when the HTML page runs inside WKWebView or UIWebView in an iOS app? I tried the test page Recording audio in Chrome for Android using web audio API and navigator.getUserMedia, loading it to a…
Randy Sugianto 'Yuku'
  • 71,383
  • 57
  • 178
  • 228
2
votes
0 answers

WKWebView strange behaviour when opening target="_blank" links on OS X

I am developing an OS X wrapper around a popular web application, using WKWebView. However, when I try to open a link from the app, I get this strange behaviour: tap on the link (the link has…
Francesco
  • 1,047
  • 11
  • 26
2
votes
3 answers

Why is my audio stream in WKWebView on iOS 9 not playing?

I have a WKWebView with content that has an
Justin Michael
  • 5,634
  • 1
  • 29
  • 32
2
votes
1 answer

WKWebView problems in iOS 9

I'm having trouble with WKWebView in XCode 7 using the iOS 9 sdk. For some reason, half of the websites I try to load come up blank (for example mobile Facebook). WKWebView worked perfectly when I built my app on iOS 8. I haven't changed any of the…
user3796209
  • 449
  • 6
  • 18