IOS 9 Considerations

This page explains when you might need to disable App Transport Security (ATS) in your mobile application.

Introduction

Apple introduced App Transport Security (ATS) in iOS 9. ATS requires apps to use https:// only, to enhance security. The Bazaarvoice Mobile SDK for iOS uses only https://, but some data returned might not include this protocol. For example, a product image URL associated with an ad might use http://. If this occurs, you might need to disable ATS for your image hosting domain.

Example

To ensure your Mobile SDK integration works correctly, disable ATS by adding the following XML to your app's Info.plist file:

<key>NSAppTransportSecurity</key>  
<dict>  
<key>NSAllowsArbitraryLoads</key>  
<true/>  
</dict>

🚧

Use the above sample only for initial testing and development. For your production application, you should include a allowlisted set of domains under the NSExceptionDomains key.