I have integrated Google Analytics 3.15. It is working fine for all other iOS versions than iOS 9.3.2 and 10.0.1. I am getting following error in to this.
NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802) Dispatch error: Error Domain=NSURLErrorDomain Code=-1200 "An SSL error has occurred and a secure connection to the server cannot be made." UserInfo={NSURLErrorFailingURLPeerTrustErrorKey=<SecTrustRef: 0x1701157b0>, NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, _kCFStreamErrorDomainKey=3, _kCFStreamErrorCodeKey=-9802, NSErrorPeerCertificateChainKey=( "<cert(0x1018ed200) s: *.google-analytics.com i: Google Internet Authority G2>", "<cert(0x1018efa00) s: Google Internet Authority G2 i: GeoTrust Global CA>", "<cert(0x1018f0200) s: GeoTrust Global CA i: Equifax Secure Certificate Authority>"
I have setup Info.plist on the basis of following analysis. On Terminal I have hit following command:
/usr/bin/nscurl --ats-diagnostics --verbose https://ssl.google-analytics.com
I have got one more information by hitting following command.
curl -kvI https://ssl.google-analytics.com
Please find my info.plist for ATS: I have tried with following links:
- iOS9 GoogleAnalytics and NSAppTransportSecurity
- Google Analytics (iOS SDK) without SSL
- App TranSport security, allow arbitrary load not working after upgrade to IOS 10.1
Please help me to understand what is the mistake I am doing here.
0 comments:
Post a Comment