Discussion Forums  >  Self Hosted Control Panels

Replies: 11    Views: 342

aussiedra
Code is Art
Profile
Posts: 431
Reg: Dec 25, 2010
Brisbane, Austr...
8,260
Fourm StarFourm Star
09/16/15 08:24 PM (7 years ago)

Self Hosted, Xcode 7 and iOS 9

You will need to add the following to your BT_info.plist to Run "without getting the there was a problem downloading some data " error Replace yoursiteurl.com with your Self Hosted site url :-) <key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <false/> <key>NSExceptionDomains</key> <dict> <key>yoursiteurl.com</key> <dict> <key>NSIncludesSubdomains</key> <true/> <key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key> <true/> <key>NSTemporaryExceptionMinimumTLSVersion</key> <string>TLSv1.1</string> </dict> </dict> </dict>
 
nadthevlad
Code is Art
Profile
Posts: 1025
Reg: Jun 07, 2012
Denver
21,850
Fourm StarFourm StarFourm Star
like
09/16/15 09:23 PM (7 years ago)
Thanks
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
Fourm StarFourm StarFourm Star
like
09/17/15 03:11 AM (7 years ago)
Good to know! Thanks! Cheers! -- Smug
 
Calypso Kid
Aspiring developer
Profile
Posts: 780
Reg: Mar 09, 2012
Upstate New Yor...
18,200
Fourm StarFourm StarFourm Star
like
09/17/15 09:11 AM (7 years ago)
Thank you!!
 
TechtagonDigital
I hate code!
Profile
Posts: 61
Reg: Aug 16, 2012
Bronx
2,610
Fourm Star
like
09/17/15 11:30 AM (7 years ago)
When to said "Replace yoursiteurl.com with your Self Hosted site url :-) " do you mean like www.myhostedsite.com or http://myhostedsite.com/Bt-1234 ? Thank you
 
TechtagonDigital
I hate code!
Profile
Posts: 61
Reg: Aug 16, 2012
Bronx
2,610
Fourm Star
like
09/17/15 11:33 AM (7 years ago)
i meant 'when you said '
 
aussiedra
Code is Art
Profile
Posts: 431
Reg: Dec 25, 2010
Brisbane, Austr...
8,260
Fourm StarFourm Star
like
09/17/15 06:25 PM (7 years ago)
example myhostedsite.com Just the domain no http or https
 
JimmySaver
Aspiring developer
Profile
Posts: 187
Reg: Apr 09, 2012
location unknow...
5,870
Fourm Star
like
09/21/15 07:36 AM (7 years ago)
Great info, helped me an awful lot! Would say that, in my experience, having the arbitrary loads set to No would not allow the styling to come through to the app. Setting it to Yes, does.
 
fusionsch
I hate code!
Profile
Posts: 516
Reg: Dec 28, 2010
Montreux Switze...
11,610
Fourm StarFourm Star
like
09/22/15 10:37 AM (7 years ago)
It works, thanks! But I've tried to add NSExceptionAllowsInsecureHTTPLoads and NSThirdPartyExceptionAllowsInsecureHTTPLoads to be able to load any non-https website, but I still get a -1022 iOS error... Any idea? Cheers Jack
 
aussiedra
Code is Art
Profile
Posts: 431
Reg: Dec 25, 2010
Brisbane, Austr...
8,260
Fourm StarFourm Star
like
09/22/15 05:09 PM (7 years ago)
if you have any sdk's that require internet access you may need to add the url also if they don't have iOS9 versions
 
fusionsch
I hate code!
Profile
Posts: 516
Reg: Dec 28, 2010
Montreux Switze...
11,610
Fourm StarFourm Star
like
09/22/15 11:58 PM (7 years ago)
I mean... 'any' non-https website. Not sdk's or web services. Just links to websites. My apps feature many links 'for more information'... And not all websites may be accessed in https... [solved] to allow non-http globally, NSAllowsArbitraryLoads must be set to YES
 
mysps
Code is Art
Profile
Posts: 2082
Reg: May 14, 2011
Palma
33,320
Fourm StarFourm StarFourm Star
like
10/01/15 06:45 PM (7 years ago)
Thanks a lot!
 

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.