2016년 2월 25일 목요일

iOS9 버전 url 접근 다운로드 허용 방법.

How do I load an HTTP URL with App Transport Security enabled in iOS 9? 

iOS9 버전 부터는 다이렉트로 url에 접근하면 권한 애러가 발생한다.
(unity the resource could not be loaded because the app transport security policy reqauires the use of a secure connection)
따라서 관련 이슈를 해결하기 위해서는 다음과 같은 과정을 진행해야 한다.

http://stackoverflow.com/questions/30731785/how-do-i-load-an-http-url-with-app-transport-security-enabled-in-ios-9


I have solved it with adding some key in info.plist. The steps I followed are:
  1. Opened my Projects info.plist file
  2. Added a Key called NSAppTransportSecurity as a Dictionary.
  3. Added a Subkey called NSAllowsArbitraryLoads as Boolean and set its value to YES as 

댓글 없음:

댓글 쓰기