marcuswestin / WebViewJavascriptBridge

An iOS/OSX bridge for sending messages between Obj-C and JavaScript in UIWebViews/WebViews
http://marcuswest.in
MIT License
14.3k stars 2.98k forks source link

Support WKWebView in iOS8? #126

Closed chipbk10 closed 8 years ago

chipbk10 commented 9 years ago

I've read https://github.com/marcuswestin/WebViewJavascriptBridge/issues/84 and don't know whether you are going to support WKWebView in iOS8 or not? I really appreciate if you support WKWebView. :)

lokimeyburg commented 9 years ago

I just want to add that personally I'm not using WKWebView in production because it has too many bugs. I'm not convinced it's ready.

chipbk10 commented 9 years ago

Another thing is I want to load the local resource. WKWebView for now cannot load the local resource. Is it possible for FLWebView to make it work? :)

marcuswestin commented 9 years ago

@chipbk10 check out github.com/marcuswestin/WebViewProxy - it will let you intercept requests for e.g images and then e.g serve them from the local file system if you choose.

-- while mobile

On Thu, Mar 26, 2015 at 8:33 AM, chipbk10 notifications@github.com wrote:

Another thing is I want to load the local resource. WKWebView for now cannot load the local resource. Is it possible for FLWebView to make it work? :)

Reply to this email directly or view it on GitHub: https://github.com/marcuswestin/WebViewJavascriptBridge/issues/126#issuecomment-86490481

chipbk10 commented 9 years ago

@marcuswestin: What are you talking about? My problem is I have a html resources downloaded from the server. I want to load it locally on WKWebView. I use FLWebView for backward compatibility and follow this tutorial :http://stackoverflow.com/questions/24882834/wkwebview-not-working-in-ios-8-beta-4

But still cannot load everything from www folder in Temporary path. The WKWebView cannot load external resources like javascript, xml files.

marcuswestin commented 9 years ago

Got it, my bad - I must have misunderstood your need.

Cheers

-- while mobile

On Thu, Mar 26, 2015 at 10:15 AM, chipbk10 notifications@github.com wrote:

@marcuswestin: What are you talking about? My problem is I have a html resources downloaded from the server. I want to load it on WKWebView. I use FLWebView for backward compatibility and follow this tutorial :http://stackoverflow.com/questions/24882834/wkwebview-not-working-in-ios-8-beta-4

But still cannot load everything from www folder in Temporary path. The WKWebView cannot load external resources like javascript, xml files.

Reply to this email directly or view it on GitHub: https://github.com/marcuswestin/WebViewJavascriptBridge/issues/126#issuecomment-86533329

luowei commented 9 years ago

Looking forward update for support WKWebView...

xwv commented 8 years ago

@luowei , @chipbk10, if you still have interesting on JavaScript bridge which supports WKWebView, I'd like to invite you the take a look at the XWebView project.

marcuswestin commented 8 years ago

This is done since a while back :)

Use 4.1.5 for WKWebView support.

You should also consider switching to v5.0.1. If you do, please note that the API has changed. In particular, make sure that you use the javascript setup code, as it has changed: https://github.com/marcuswestin/WebViewJavascriptBridge#usage.

Cheers!