while m calling my api got this error in ios9 but it is working fine in ios8 The resource could not be loaded because the App Transport Security policy requires the use of a secure connection ios9
You need to add one flag in plist. See more at https://forums.developer.apple.com/thread/3544
I have solved it with adding some key in info.plist. The steps I followed are:
Opened my Projects info.plist
file
Added a Key called NSAppTransportSecurity
as a Dictionary
.
NSAllowsArbitraryLoads
as Boolean
and set its value to YES
as like following image.Clean the Project and Now Everything is Running fine as like before.
Ref Link:
https://stackoverflow.com/a/32631185/2905967
https://stackoverflow.com/a/32609970
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With