tkyaji / cordova-plugin-crypt-file

This plugin to encrypt the source files.
Apache License 2.0
179 stars 116 forks source link

wkwebview support? #58

Open allen-hu-666 opened 6 years ago

allen-hu-666 commented 6 years ago

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

s-s commented 6 years ago

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.

flastowizka commented 6 years ago

+1 the same issue here

arcadius commented 6 years ago

+1

yefengbar commented 6 years ago

+1

fdambrosio commented 6 years ago

+1

fdambrosio commented 6 years ago

with Ionic wkwebview is default on iOS

mzohair commented 6 years ago

+1

R30na commented 6 years ago

Anyone have solution????

wangshengjin commented 6 years ago

Anyone have solution????

fdambrosio commented 6 years ago

@wangshengjin there's no solution :-(

mikaelboff commented 5 years ago

+1 @tkyaji

querymaster commented 5 years ago

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

Mapiac commented 5 years ago

+💯

fdmartins commented 4 years ago

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?

cyborgk9 commented 4 years ago

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.

ng22792 commented 4 years ago

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?

barkitoman commented 3 years ago

+1

chorauoc commented 3 years ago

Any update on this issue