Here is the AR Quick Look website from Apple docs - https://developer.apple.com/augmented-reality/quick-look/
If I go to this website in the Safari browser on my iPhone 8, then everything is working correctly. I can tap any of the 3D model and place it inside the Augmented Reality.
However, if I view the same website in the WKWebView, then the AR models are not working correctly. I am not able to tap any model and place it inside the AR.
For the comparison I am attaching screenshots from the Safari browser and from the WKWebView
Safari
WKWebView
As you can see in WKWebView, the AR icon is not even showing up.
Does anyone knows why AR images are not working inside the WKWebView?
I will be very glad for any help.
I just found a tweet from 2018 suggesting that WKWebView does not support AR Quick Look. You can find it here. The WebKit website also suggests that.
Most probably SFSafariController should be used instead.
Related
I am starting learn webview in ios swift but i am unable to understand the difference between uiwebview and webview kit. recommend some article or documentation so that i can make it clear.
UIWebView is deprecated and should not be used in apps and WKWebView is the replacement for that .
If you compare it performance wise, WKWebView outperforms UIWebView in case of memory consumption as UIWebView consumes a lot of memory to load the same webpage and WKWebView on the other hand does not consume that much. You can easily create a demo app and see for yourself
As per Apple Documentation
In apps that run in iOS 8 and later, use the WKWebView class instead
of using UIWebView
So, to sum it up, if you want to load a webpage inside your app, you can use WKWebView
Also, not really what you asked for, but you should also look inside SFSafariViewController if you want some Safari related features such as Reader, AutoFill, Fraudulent Website Detection, and content blocking.
You can find more about SFSafariViewController
I want to play video streaming using MobileVLCKit in fullscreen mode.
How can I do this?
Please share code if possible (swift)..
I just saw that my previous answer on the old thread was massively downvoted back then. It's still true though. MVK renders in a simple UIView, so it is the obligation of the client app to implement the view handling, be it a tiny one or one filling the screen.
Note that there is sample code available on how to integrate MVK here: https://code.videolan.org/videolan/VLCKit/
WebKit's fast tap functionality has come to Safari in iOS 9.3 (see documentation). I work on an e-reader app that uses a web view to display text. We still use UIWebView because of various bugs in WKWebView, but I can switch out to WKWebView very easily for testing purposes. We have our own custom touch handling to get around the 350 ms touch delay so links feel faster. I just tried out the fast-tap thing, and it only appears to work in WKWebView. Is this correct / confirmed / documented somewhere? Or should fast-tap work in both UIWebView and WKWebView?
Update: here is an article about some changes toward the current fast-tap behavior in iOS 8 that only appeared in WKWebView. But nothing about the new iOS 9.3 stuff.
Does video.js support Android WebView?
We use an Android app to put a tablet in Kiosk Mode in which our web app runs. However, webview video tag does not give us a image of the first frame, only the ugly widgets background.
A better question might be whether your WebView supports video.js. You need to configure the WebView to behave equivalently to a proper browser – HTML5 video definitely won't work without some tweaking. I've found this custom web view to work well (including with video.js):
https://code.google.com/p/html5webview/
I am showing a twitter feed in a uiwebview... however there is a problem: it appears significantly differently in the uiwebview then what it does in mobile safari. Ultimately, I much prefer the look of the feed as it is shown in mobile safari. Is there any way to 'trick' the web view into displaying itself as safari? Possibly by altering the user agent? Thanks.
Ended up altering the user agent. App made it past apple review fine.
UIWeView and Safari doesn't display all the pages as the same..There can be minor differences in formatting in UIWebView which won't be found in Safari..
Solution to this is to use javascript to alter the WebView itself programmatically to display things right..
more info avaialble in UIWebView Class Reference doc here