Skip to main content

Create a proxy within the iOS app



I have an app with an UIWebView (which is connected with a website); the user will navigate into the website. After that, I want that when the user open the app and there is no connection, the already visited pages will be accessible.





So I though that it should be possible if I create an internal proxy within the app: each request will be processed by this proxy (and will send the result to the UIWebView). Of course, the proxy should cache the web pages and, if there is no connection available, use the cached pages.





I prefer this approach instead of others (HTML5 offline cache) because, in the future, I will can set some feature to the proxy, for example "I want to cache all the pictures for the next 5 hours" etc...





Do you know if it's possible and, if it is, what should I use to do it? Or... do you know if there is something similar already done (some Objective-C Proxy?) ?


Comments

Popular posts from this blog

Slow Android emulator

I have a 2.67 GHz Celeron processor, 1.21 GB of RAM on a x86 Windows XP Professional machine. My understanding is that the Android emulator should start fairly quickly on such a machine, but for me it does not. I have followed all instructions in setting up the IDE, SDKs, JDKs and such and have had some success in staring the emulator quickly but is very particulary. How can I, if possible, fix this problem?