Discussion Forums  >  Uncategorized

Replies: 1    Views: 242

M_Wilkie1
Aspiring developer
Profile
Posts: 7
Reg: Jun 11, 2011
Port Macquarie
70
06/14/11 08:00 PM (14 years ago)

Getting app to work with school proxy

Hi Everyone, This question seems unsolvable - has anyone worked out a way in which I can successfully get my app to work on the school proxy? -Safari and app store seem to be the only apps that actually work on a proxy server - I read somewhere that I can get the I.T guys to download some type of Security Certificate? Any information would be greatly greatly appreciated!!!
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
06/15/11 12:32 AM (14 years ago)
Hi in Port Macquarie, There IS a way to do this. It's challenging but doable. The tricky part is figuring out which download method is failing and trapping the fail then bypassing the error. Sounds compilcated because it is. The approach to figuring this out will also depend on what exactly is failing to download. A webpage? The apps configuration data, etc. I'll setup a simple scenario, your's may be different. Try to follow this logic. a) You create a simple app with one manu and one other screen, a Custom URL screen pointed to Google b) You erase the Configuration Data URL and Report To Cloud URL in the control panel so the app doesn't look to the server when it first launches. c) Download the code d) Compile it and run it while your behind your proxy. At this stage the app has not needed a network so all should be OK. Next, tap the menu item to load Google. IT should fail if your proxy prevents it. So, becuase it's a Custom URL screen in your control panel, this means you'll want to have a look at the BT_screen_webView.m file in the BT_Screens folder. Open this file and look at the didFailLoadWithError method on about line 645. you'll see some error codes listed like 204, 101, 102, etc. These are different errors we are 'ignoring' because they happen alot and we don't want to stop-loading when they do. See if you can look at the output console and determine what error is reported when Google wont load. The solution will be based on that code.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.