article icon indicating copy to clipboard operation
article copied to clipboard

iOS要接入https证书,应该怎么处理啊

Open songxing10000 opened this issue 8 years ago • 2 comments

0.13.0版本中,可以写个类继承WXResourceRequestHandlerDefaultImpl 实现WXResourceRequestHandler NSURLSessionDelegate,在m文件中,实现

 -(void)URLSession:(NSURLSession *)session didReceiveChallenge:(NSURLAuthenticationChallenge *)challenge completionHandler:(void (^)(NSURLSessionAuthChallengeDisposition disposition, NSURLCredential * _Nullable credential))completionHandler 

这样就可以检验https证书了,可是现在的0.15.0已经没有WXResourceRequestHandlerDefaultImpl这个类了,求解决方案啊

songxing10000 avatar Aug 24 '17 07:08 songxing10000

我目前用的Weex的最新版本0.16.3,我看目前还是有WXResourceRequestHandlerDefaultImpl这个类的,还是能够处理的

itdongbaojun avatar Oct 20 '17 03:10 itdongbaojun

pod 'WeexSDK' 后,这个类是隐藏在framework里的,没有把头文件放出来,但是你以为本地pod形式引入WeexSDK后才会有WXResourceRequestHandlerDefaultImpl 的h、m文件吧

songxing10000 avatar Oct 20 '17 11:10 songxing10000