Not working on ios 9?
ianfbrown opened this issue · comments
Using xcode 7.0, this project works fine in the simulator for ios 8.1 (iPad 2), but after the splash screen it gets stuck with a white screen for the simulator for ios 9.0 (iPad 2), and for a physical iPad Mini 2 running ios 9.0.1. Any idea where to start looking? Many thanks, Ian.
Following on from feedback from Josh Kehn, with a similar issue for JSMessageExample, this is due to the new for ios 9: App Transport Security.
The fix is to either upgrade the required website to the latest https, or to edit the Info.plist file to disable App Transport Security for individual websites (or even disable it entirely). To get FLWebView up and running again on ios 9, to access floatlearning.com, simply add the following to the Info.plist file:
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>floatlearning.com</key>
<dict>
<!--Include to allow subdomains-->
<key>NSIncludesSubdomains</key>
<true/>
<!--Include to allow HTTP requests-->
<key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
<true/>
<!--Include to specify minimum TLS version-->
<key>NSTemporaryExceptionMinimumTLSVersion</key>
<string>TLSv1.1</string>
</dict>
</dict>
</dict>
as described on Steven Peterson's blog. He also has instructions for disabling App Transport Security entirely.
Thanks for pointing this out, and tracking down the problem!
yes Its not working in iOS 9 also in 9.2
@avaiyakirtib: This is a consequence of App Transport Security. If you want to allow HTTP, just add NSTemporaryExceptionAllowsInsecureHTTPLoads
to your plist.