Search Unity

AdMob IOS Issue getting NSURLSession/NSURLConnection HTTP load failed on AdRequest

Discussion in 'iOS and tvOS' started by Sam-K, Aug 17, 2016.

  1. Sam-K

    Sam-K

    Joined:
    Mar 23, 2013
    Posts:
    27
    I have downloaded the latest Admob SDK from their site and followed the instructions on how to setup and run. On IOS while doing adRequest NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9814) is printed into the Xcode console.
    The samething is working fine on android.
    Getting the same issue on different devices with different OS version. Tested it on OS 9.3.4 and OS 8.1 same issue.
    Have just integrated unity ads into Admob mediation although I have tested others too not working.
    Anyone solved this issue or has any lead?
     
  2. r618

    r618

    Joined:
    Jan 19, 2009
    Posts:
    1,305
    allow unsecure http transport in the player settings;
    it is NSAllowsArbitraryLoads property of NSAppTransportSecurity key in the property of the XCode project's Info.plist so you can check that too then
     
    Last edited: Aug 18, 2016
  3. immacul8_apps

    immacul8_apps

    Joined:
    Apr 4, 2015
    Posts:
    9
    Has anyone been able to resolve this issue??
    I am also facing the same problem, after trying so many things over several weeks still getting the same error.


    my .plist contains
    <dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
    <key>NSAllowsArbitraryLoadsForMedia</key>
    <true/>
    <key>NSAllowsArbitraryLoadsInWebContent</key>
    <true/>
    <key>NSExceptionDomains</key>
    <dict>
    <key>play.googleapis.com</key>
    <dict>
    <key>NSIncludesSubdomains</key>
    <true/>
    <key>NSExceptionMinimumTLSVersion</key>
    <string>TLSv1.0</string>
    <key>NSExceptionAllowsInsecureHTTPLoads</key>
    <true/>
    <key>NSExceptionRequiresForwardSecrecy</key>
    <false/>
    <key>NSThirdPartyExceptionMinimumTLSVersion</key>
    <string>TLSv1.0</string>
    <key>NSThirdPartyExceptionRequiresForwardSecrecy</key>
    <false/>
    <key>NSThirdPartyExceptionAllowsInsecureHTTPLoads</key>
    <true/>
    </dict>
    </dict>
    </dict>


    using unity 5.6b
    xcode 8.2.1


    2016-10-27 14:02:31.948 com[2315:1743253] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9814)

    2016-10-27 14:02:32.021 com[2315:1743318] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9814)

    2016-10-27 14:02:31.680 com[2315] <Error> [Firebase/Core][I-NET901017] <Firebase/Network/ERROR> Encounter network error. Code, error: -999, Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo={NSErrorFailingURLKey=https://play.googleapis.com/log, NSErrorFailingURLStringKey=https://play.googleapis.com/log, NSLocalizedDescription=cancelled}

    2016-10-27 14:02:32.037 com[2315] <Error> [Firebase/Core][I-COR000020] Error posting to Clearcut: Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo={NSErrorFailingURLKey=https://play.googleapis.com/log, NSErrorFailingURLStringKey=https://play.googleapis.com/log, NSLocalizedDescription=cancelled}