nsurlprotocol Questions
2
I have a HTML file which contains local resource files such as css, js and png files inside its content. These local resource files are in zip format. My app use WKWebView to display this html file...
Adorl asked 14/10, 2019 at 23:51
4
Solved
How can i monitor requests on WKWebview?
I'v tried using NSURLprotocol (canInitWithRequest) but it won't monitor ajax requests (XHR), only navigation requests(document requests)
Serin asked 27/2, 2015 at 13:51
2
Solved
I have my NSURLProtocol MyGreatProtocol. I add it to the URL Loading system,
NSURLProtocol.registerClass(MyGreatProtocol)
I then start receiving events inside MyGreatProtocol during network sess...
Prospect asked 11/4, 2016 at 17:10
4
Solved
I'm trying to implement this tutorial which implements a custom NSURLProtocol with NSURLConnection.
https://www.raywenderlich.com/76735/using-nsurlprotocol-swift
It works as expected, but now tha...
Collocate asked 30/3, 2016 at 1:0
0
I'm trying to figure out how to get current ts file from the avplayer.
I tried subclassing NSURLProtocol, but that doesn't show the url from the avplayeritem.
Thanks.
Topflight asked 4/5, 2017 at 7:5
1
I want to encrypt/decrypt all cached data from a NSURLSession using AES256. I'm new using Alamofire but I think it is possible to do it without involving the library itself.
I don't know exactly w...
Tenant asked 26/2, 2017 at 10:52
1
Solved
I have a custom NSURLProtocol ("UrlProtocol") written to intercept requests from a UIWebView when navigating to specific websites, and apply an extra HTTP header before being sent. I followed https...
Team asked 5/1, 2017 at 4:43
2
Solved
I'm registering an implementation of NSURLProtocol to do some custom handling of certain URL requests (I tag these requests by setting properties on them). These URL requests are coming from a UIWe...
Gaullist asked 15/10, 2014 at 18:56
4
Solved
As you know,play a movie with MPMoviePlayerController object using
[[MPMoviePlayerController alloc] initWithContentURL: aURL];
now ,i want to achieve a custom NSURLProtocol in which i will decr...
Galvanoscope asked 8/12, 2010 at 1:27
3
Solved
My application uses NSURLConnection to communicate with server. We use https for communication. In order to handle authentication from all request in one place i used NSURLProtocol and handled auth...
Erdrich asked 26/8, 2015 at 9:48
2
I am using a subclass of NSURLProtocol to intercept all HTTP calls and modify the user agent as well as add a other http headers required by my server.
-(id)initWithRequest:(NSURLRequest *)request...
Frugal asked 7/2, 2012 at 16:17
2
I'm working on an iOS application using Xamarin.Forms. This application is using UIWebView controller that shows a web application that is hosting on my server. Each time that I make a request I ha...
Imena asked 29/2, 2016 at 22:42
5
Solved
Similar questions have been asked before, but I could never find a solution.
Here is my situation - my UIWebView loads a remote html page. The images used in the web pages are known at build time....
Drew asked 6/4, 2011 at 19:59
3
Solved
I have a custom NSURLProtocol class that I have implemented with the help of this tutorial. My implementations are pretty much the same as in the tutorial, aside from the names, data model, etc...
...
Dahlberg asked 26/1, 2015 at 10:36
2
I use custom url protocol in my app by extending NSURLProtocol. It works fine most of the time but I see the following crash being reported via crashlytics. I'm unable to reproduce this myself. The...
Johannesburg asked 27/10, 2015 at 9:54
2
I'm having an issue where a video resource in my UIWebView is not loading. This is only an issue on an actual device- everything works perfectly on the simulator.
Note: I've already checked this a...
Piggy asked 12/10, 2015 at 20:5
1
Solved
I have a NSURLSession that runs in a background queue. I'm adding my NSURLProtocol subclass to the NSURLsessionConfiguration.protocolClases but the override class func canInitWithRequest(request: N...
Tape asked 24/2, 2015 at 20:21
4
Solved
I need to pass some extra informations along with UIWebView loadRequest: so that it reaches my implementation of NSURLProtocol. The information cannot be bound to NSURLRequest because the informati...
Turpentine asked 30/10, 2013 at 15:35
1
Solved
Our app has a lot of web views in it and I recently added a NSURLProtocol to interceptor some of the requests from them.
I've noticed that some of the web views are calling the +[NSURLPRotocol can...
Ihs asked 23/4, 2014 at 7:49
1
I'm currently trying to play a video to a URL that has the custom scheme defined in a custom NSURLProtocol subclass. Initially I was using MPMoviePlayerController in an attempt to accomplish this, ...
Cozenage asked 7/3, 2013 at 11:18
1
I'm having some issues with video requests handled through a special protocol scheme in a NSURLProtocol subclass. Every other resource (images/text) are getting handled correctly, however, when a v...
Dannielledannon asked 24/2, 2014 at 18:17
2
Solved
In my iOS app, I'm using a UIWebView and a custom protocol (with my own NSURLProtocol implementation). I've been fairly careful about making sure that whenever I load a url, I load something like t...
Rawlins asked 15/2, 2012 at 21:21
1
Solved
Is there a clean and spec-conformant way to define a custom URL scheme that acts as an adapter on the resource returned by another URL?
I have already defined a custom URL protocol which returns a ...
Diageotropism asked 27/12, 2013 at 20:32
2
Solved
I have UIWebview that makes AJAX calls to external services. When offline i need to catch theses requests and return local json.
I implemented a NSURLProtocol and i manage to catch the AJAX reques...
Gerontocracy asked 5/3, 2013 at 12:40
0
Overview
I'm working on a SAML login (single sign-on, similar to openID) solution for an iOS app that involves showing a view controller with a UIWebView and I'm running into a timing and/or timeo...
Loni asked 11/1, 2013 at 18:59
1 Next >
© 2022 - 2024 — McMap. All rights reserved.