Reputation: 7501
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:
Please help me to understand what is the mistake I am doing here.
Upvotes: 2
Views: 495
Reputation: 7501
Thanks for the comments but after lots of research I came to know that reason for error.I have fixed by just changing the Date and Time of iPhone to Automatic from Manual.I know it's very simple fix but it took 5 days to analyze and fix.
Upvotes: 1