tlenclos / react-native-audio-streaming

iOS & Android react native module to play an audio stream, with background support and media controls
MIT License
783 stars 254 forks source link

CFNetwork SSLHandshake failed (-9824) #61

Open mxmtsk opened 7 years ago

mxmtsk commented 7 years ago

Hello,

I keep getting the error CFNetwork SSLHandshake failed (-9824) in the Xcode console. I have googled already and my Info.plist looks like this:

  <dict>
      <key>NSAllowsArbitraryLoads</key>
      <true/>
      <key>NSExceptionDomains</key>
      <dict>
          <key>my_domain.com</key>
          <dict>
              <key>NSIncludesSubdomains</key>
              <true/>
              <key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
              <true/>
              <key>NSTemporaryExceptionMinimumTLSVersion</key>
              <string>TLSv1.0</string>
              <key>NSTemporaryExceptionRequiresForwardSecrecy</key>
              <false/>
          </dict>
          <key>localhost</key>
          <dict>
            <key>NSExceptionAllowsInsecureHTTPLoads</key>
            <true/>
          </dict>
      </dict>
  </dict>

But that didn't help. Has anyone experienced this also and found a solution?

tmaly1980 commented 6 years ago

Did you ever figure this out? I'm noticing this particularly on some HTTPS URLs, it almost seems like it's some sort of SSL error, though I can't figure out how to bypass it. Nothing in the info.plist helps. HTTP URLs work fine. I may just rewrite the URLs to use HTTP in the interim. The URLs in my case are arbitrary, I don't have control over the servers hosting the media files.