I am newly in Flutter. I want to use webview in my flutter application. I refer
Plugin -
For intercepting css, js, json request from web view. This is nicely working with Android . But in IOS , can’t intercept all request. Problem in NSURLProtocol using with WKWebview.
When I use NSURLProtocol then I can not be login with my website. And if commented this code from file(mention in below) then everything nicely work but I can’t get intercept request.
When you open GitHub from both url you can find this file under project directory
WebViewFlutterPlugin.m
Path - Projectfolder/ios/Classes/WebViewFlutterPlugin.m
[NSURLProtocol registerClass:[FlutterNSURLProtocol class]];
[NSURLProtocol wk_registerScheme:@"http"];
[NSURLProtocol wk_registerScheme:@"https"];
When I adding Those line in WebViewFlutterPlugin.m then navigation or authenticate url not working in web view. When I remove those line from WebViewFlutterPlugin.m then shouldInterceptRequest not working. What can I do ?
It’s happen only for IOS.