Disabling ATS restrictions in iOS

219 views
Skip to first unread message

Song-e Han

unread,
Jun 8, 2022, 11:36:04 PM6/8/22
to Google Mobile Ads SDK Developers
Hello Google Mobile Ads SDK Team,

I'm reading your guide about App Transport Security.
The document says, add the three exceptions below to the app's info.plist file to disable ATS restrictions:
  • NSAllowsArbitraryLoads: required for iOS 9 devices
  • NSAllowsArbitraryLoadsForMedia: required for iOS 10 and later devices
  • NSAllowsArbitraryLoadsInWebContent: required for iOS 10 and later devices
However, Apple developer documentation about NSAllowsArbitraryLoads says, in iOS 10 and later, the value of the NSAllowsArbitraryLoads key is ignored—and the default value of NO used instead—if NSAllowsArbitraryLoadsForMedia or NSAllowsArbitraryLoadsInWebContent keys are present in the info.plist file.

My app's minimum iOS version is 13.0. So, would it be ok if I added not NSAllowsArbitraryLoads but NSAllowsArbitraryLoadsForMedia and NSAllowsArbitraryLoadsInWebContent to the info.plist file?

Thanks,
Song-e

Mobile Ads SDK Forum Advisor

unread,
Jun 9, 2022, 4:32:56 AM6/9/22
to 1son...@gmail.com, google-adm...@googlegroups.com

Hi Song-e,

Thank you for reaching out to us.

As per our documentation, the NSAllowsArbitraryLoads exception is required to make sure your ads are not impacted by ATS on iOS 9 devices, while NSAllowsArbitraryLoadsForMedia and  NSAllowsArbitraryLoadsInWebContent are required to make sure your ads are not impacted by ATS on iOS 10 and later devices. Since your minimum iOS version is 13, then you can not add it in your info.plist.

Regards,

Google Logo
Princess Pamela
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2bdsBV:ref

Song-e Han

unread,
Jun 9, 2022, 4:37:53 AM6/9/22
to mobile...@forumsupport.google, google-adm...@googlegroups.com
Thank you for the clarification!

Song-e
Message has been deleted

Mobile Ads SDK Forum Advisor

unread,
Jun 9, 2022, 6:48:49 AM6/9/22
to 1son...@gmail.com, google-adm...@googlegroups.com
Hi Song-e,

If you have any other concerns related to the implementation of Google Mobile Ads SDK, kindly provide us the details. We'll be happy to assist you.

Reply all
Reply to author
Forward
0 new messages