Search code examples
iosinstagraminstagram-api

App Transport Security ios 9 and instagram api


I have a problem with instagram API and iOS 9. My app works correctly on iOS 8, but not on iOS 9. I receive this error when I try to authorize a user in instagram

NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802)

I tried a lot of variants, for example from this question App Transport Security breaks Web View

Please help me!


Solution

  • This is for the ATS, if you use xcode 7 it will embeeded with ATS feature, try to build with not the version 7 like 6.1 xcode, and you can run it on ios9 devices and the calls to http will work.