cordova-plugin-crypt-file icon indicating copy to clipboard operation
cordova-plugin-crypt-file copied to clipboard

wkwebview support?

Open allen-hu-666 opened this issue 7 years ago • 18 comments

i use the plugin in my project. android is ok, but not work on ios when i use wkwebview.

allen-hu-666 avatar Dec 11 '17 01:12 allen-hu-666

WKWebView do networking stuff out of app’s process, so it ignores NSURLProtocol subclass that decrypts your assets. You can use this approach to add NSURLProtocol support to WKWebView https://github.com/WildDylan/WKWebViewWithURLProtocol But please note, that it is quite semi-legit to use it. Alternatively, iOS 11 introduces some support for custom scheme handlers for WKWebView (https://developer.apple.com/documentation/webkit/wkurlschemehandler), but I haven’t played with it yet.

s-s avatar Dec 18 '17 16:12 s-s

+1 the same issue here

flastowizka avatar Jan 11 '18 00:01 flastowizka

+1

arcadius avatar Mar 06 '18 12:03 arcadius

+1

yefengbar avatar Mar 19 '18 11:03 yefengbar

+1

fdambrosio avatar Mar 21 '18 00:03 fdambrosio

with Ionic wkwebview is default on iOS

fdambrosio avatar Mar 29 '18 12:03 fdambrosio

+1

mzohair avatar Apr 16 '18 21:04 mzohair

Anyone have solution????

R30na avatar Jun 21 '18 06:06 R30na

Anyone have solution????

wangshengjin avatar Jul 03 '18 05:07 wangshengjin

@wangshengjin there's no solution :-(

fdambrosio avatar Jul 03 '18 15:07 fdambrosio

+1 @tkyaji

mikaelboff avatar Oct 16 '18 18:10 mikaelboff

@tkyaji having same issue, could you please resolve and update the repo.

querymaster avatar Oct 18 '18 13:10 querymaster

+💯

Mapiac avatar Mar 23 '19 23:03 Mapiac

WKWebView do networking stuff out of app’s process, so it ignores NSURLProtocol subclass that decrypts your assets. You can use this approach to add NSURLProtocol support to WKWebView https://github.com/WildDylan/WKWebViewWithURLProtocol But please note, that it is quite semi-legit to use it. Alternatively, iOS 11 introduces some support for custom scheme handlers for WKWebView (https://developer.apple.com/documentation/webkit/wkurlschemehandler), but I haven’t played with it yet.

any tips to use WKWebViewWithURLProtocol approach?

fdmartins avatar Dec 06 '19 01:12 fdmartins

I know it's a long-shot, but... getting this notice now when submitting my app to Apple.

ITMS-90809: Deprecated API Usage - Apple will stop accepting submissions of app updates that use UIWebView APIs starting from December 2020. See https://developer.apple.com/documentation/uikit/uiwebview for more information.

...so it'd be nice to get WKWebView support with this plugin. Thank you.

cyborgk9 avatar Mar 16 '20 01:03 cyborgk9

WKWebView do networking stuff out of app’s process, so it ignores NSURLProtocol subclass that decrypts your assets. You can use this approach to add NSURLProtocol support to WKWebView https://github.com/WildDylan/WKWebViewWithURLProtocol But please note, that it is quite semi-legit to use it. Alternatively, iOS 11 introduces some support for custom scheme handlers for WKWebView (https://developer.apple.com/documentation/webkit/wkurlschemehandler), but I haven’t played with it yet.

Can you kindly show how the wkurlschemehandler can be used to process NSURLProtocol subclass so that decryption is possible?

ng22792 avatar Aug 11 '20 11:08 ng22792

+1

barkitoman avatar Jan 21 '21 19:01 barkitoman

Any update on this issue

chorauoc avatar Feb 02 '21 04:02 chorauoc