回调显示发送成功,报了以下错误,其他设备接受不到!
代码语言:javascript复制<NSURLProtectionSpace: 0x60000000a030>: Host:yun.tim.qq.com, Server:https, Auth-Scheme:NSURLAuthenticationMethodServerTrust, Realm:(null), Port:443, Proxy:NO, Proxy-Type:(null)
原因:这是苹果开发默认不支持http原由造成的!
解决方式:在info.plist 文件加入
代码语言:javascript复制<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
<key>NSAllowsArbitraryLoadsInWebContent</key>
<true/>
<key>NSExceptionDomains</key>
<dict>
<key>afinia.s3-website-us-west-1.amazonaws.com</key>
<dict>
<key>NSExceptionAllowsInsecuerHTTPLoads</key>
<true/>
<key>NSExceptionMinimumTLSVersion</key>
<string>TLSv1.0</string>
<key>NSIncludesSubdomains</key>
<true/>
</dict>
</dict>
</dict>