I\'m using the new FireBase SDK introduced at I/O 2016 and I\'m getting this error after integrating with my app. This happens at app launch.
2016-08-06 06:2
The problem is with the network. Sometimes the network condition is too slow that the network times out and the SSL checking cannot be made on time. This also happens more often on iOS 9.x which requires better security. What kind of iOS version and which device did you run it on? Did it happen all the time at start?
This is caused by App Transport Security on iOS 9+. Apple imposed restrictions on SSL certificates that not all servers meet.
If you owned the server that is generating this message, I would advise updating to a more secure, modern SSL server certificate. But since it is Google/Firebase's server, all we can do is disable App Transport Security specifically for this domain.
Here is the part listing the domain:
NSErrorFailingURLStringKey=https://app-measurement.com...
You need to add this domain to your Info.plist file as follows:
<key>NSExceptionDomains</key>
<dict>
<!-- Firebase/Google Analytics server - Disables App Transport Security for this specific domain -->
<key>app-measurement.com</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
</dict>
</dict>
Keep in mind that allowing insecure connections from a third-party server does potentially introduce a security vulnerability to your app. However, if you are not sending any sensitive data to the Analytics server (which you shouldn't do anyway), then the exposure should be minimal.
According to Apple's ATS documentation, including any ATS exceptions will trigger a review the next time you submit to the App Store, so you may want to consider that as well.