Corona SDK native WebView browsers - ios

What browser is using Corona SDK for the native WebView?
I presume for iOS it is using an Objective C WebView which should use Safari, and for Android it's using Chrome, but I haven't been able to find any reference to it.

I don't know abut Android But iOS UIWebView is not safari that is sure.
You can rad some difference here : UIWebView and Safari comparison
One more article about this : Apple confirms some WebKit optimizations unavailable to iOS Apps
iOS 8 give new WebView named WKWebView One good article about this is here : NSHipster : WKWeb​View
But I don't know that Corona is going to use WKWebView or not.

Related

how can I know if a web api is supported by WKWebView?

I am a web frontend developer and working on buildiing webview pages in hybrid app for the first time.
I was considering Page Visibility API and trying to find out if it is supported by webview browsers, like WKWebView and Android Webview, and couldn't find informations about WKWebView support.
I know there is a safari on iOS tab in caniuse.com, but I am not sure if it means WKWebView supports the same.
so I want to know
if safari on iOS supports something, does it mean WKWebView supports the same?
if not, where can I find informations about WKWebView support?
thank you in advance.

iOS video/audio calls with webRTC using UIWebView or any alternative

Im working with integrating my iOS app with ladesk Live agent, they don't have an SDK for iOS neither android, you have to embed a unique URL in a UIWebView as per the integration instructions
but it is faced a fact that the video / call button needs to work with webRTC. The WebRTC framework that is responsible for voice functionality in the browser, however webRTC is not available in the mobile versions of web browsers.
The best thing I found is A WebRTC browser for iOS developed in the open. Bowser is built on top of OpenWebRTC. but it didn't work, and had same results as doing the same with UIWebView
Any ideas in Objective c or swift?
You won't be able to use WebRTC in a UIWebView (or its successor WKWebView) since WebRTC is only available in the Safari app on iOS.
The only way forward is to use a WebRTC stack (like Apprtc) and implement your own solution based on that.

WebKit + WebRTC without Safari 11/Safari Preview and High Sierra

I'm really intrigued with WebRTC and want to start building web based technologies that have access to hardware and other aspects of what a native application might have. My question is, how might I implement WebRTC into WebKit, without using High Sierra for macOS or Safari 11/Safari Preview? This goes beyond using Chrome or Firefox to test some WebRTC components. I want to be able to implement an instance of WebKit, maybe using webview in a macOS app, and include WebRTC.
Maybe even, a framework that I could use in Xcode and Swift for a macOS app or iOS app? That would be even more awesome!
What I've looked at so far:
https://webkit.org/blog/7763/a-closer-look-into-webrtc/
http://www.webrtcinwebkit.org
https://www.openwebrtc.org
https://webrtc.github.io/samples/
https://www.openwebrtc.org/bowser/
Also found this to be interesting:
http://thejackalofjavascript.com/node-webkit-webrtc-and-angularjs-a-video-chat-client/

What is the browser used by cordova on iOS?

I understand that Android uses the WebView which is based on Chromium (from version 4.4), Does cordova on iOS uses Safari or something else?
Safari for iOS is using WebKit2 (starting from iOS 8).
Details about WebKit2.
This seems to answer to your question.
This plugin makes Cordova use the WKWebView component instead of the default UIWebView component, and is installable only on a system with the iOS 9.0 SDK.
UIWebView is a part of WebKit.
cordova apps use the UIWebView component to load the apps, it's based on safari (WebKit2) but it doesn't include the Nitro javascript engine (the one safari app uses), so your cordova apps will be slower than safari app executing the same code.
Once cordova 4.0 is out, it will include "plugable webviews", that means, you will be able to choose which webview to use from any of the webviews available on the SDK (right now UIWebView and WKWebView)
If you can't wait for cordova 4.0, you can use the WKWebView plugin
WKWebView is based on safari too, but it uses the Nitro javascript engine, so it's as performant as safari app
Here you can read a full article about the comparison between UIWebView and WKWebView
The main difference is, as I mentioned before, WKWebView uses the Nitro javascript engine that is faster than the one used on the UIWebView,
and WKWebview supports IndexedDB and ObjectStore ArrayBuffer.
CSS compability and rendering is the same for UIWebView, WKWebView and safari app

Is iOS UIWebView based on Safari implementations like Android WebView on Chromium?

I'm searching now for a while but I've not found a solid statement on an apple developer site about the underlying implementation of the UIWebView.
Does anybody know that?
Apple introduced WKWebView in iOS8. This implementation replaces UIWebView and brings with it the same javascript engine that Safari on iOS uses. The old UIWebView was not as responsive as Safari as it had an older implementation of the javascript engine and leaked memory.
There is a great article on NSHipster about it, http://nshipster.com/wkwebkit/

Resources