ChenYilong / ChenYilong/iOS11AdaptationTips

Deal With WKWebView DNS pollution problem in iOS11

Open
#16 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
477
Forks
47
PR merge metrics
No merged PRs in 30d

Description

iOS 11 WKWebView provides APIs which work like NSURLProtocol in UIWebView, it's useful to WKWebView DNS pollution problem.

New API `-[WKWebViewConfiguration setURLSchemeHandler:forURLScheme:]`,provide `WKURLSchemeHandler` to handle the request with your network tool.

Reference: [Apple API Doc](https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/2875766-seturlschemehandler?language=objc)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.