IOS9 Request HTTPS Issue-logging

Source: Internet
Author: User

IOS9 start Apple to change HTTP to HTTPS, so there is a network request failure problem, workaround:

1. Change back to http:

Add a key:nsapptransportsecurity (dictionary type) to the Info.plist file, and then add a Key:nsallowsarbitraryloads (Boolean) to it, and the property value is set to Yes. For example:
      
2. Add White List

(here is mainly for the Run program print '-canopenurl:failed for URL: "XXX"-Error: "The" This app was not a allowed to the query for scheme XXX "issue) (in Friends of the league as an example bar)

Open the Info.plist file as source code, and add something like the following in it (general official online can find a way to handle, HTTP://DEV.UMENG.COM/SOCIAL/IOS/IOS9)

<Key>Lsapplicationqueriesschemes</Key>    <Array>        <string>WeChat</string>        <string>Weixin</string>        <string>Sinaweibohd</string>        <string>Sinaweibo</string>        <string>Sinaweibosso</string>        <string>Weibosdk</string>        <string>weibosdk2.5</string>    </Array>

3, after running the program, the printing information will be changed to '-canopenurl:failed for URL: "XXX"-error: "NULL", this printing seems to be unable to eliminate (I did not find a way to solve, but the real machine will not appear when printing)

To this OK.

Add links, about iOS9 adaptation question: http://www.cocoachina.com/ios/20150702/12384.html

IOS9 Request HTTPS Issue-logging

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.