Blog
All Blog Posts | Next Post | Previous Post
Fixing the FMX TWebBrowser issue on iOS 9
Wednesday, September 23, 2015
Update: You now optionally add additional keys in the iOS9Fix_config.txt file Linking against iOS 9 introduces the new Application Transport Security feature that enforces a secure network connection. This means that in a default RAD Studio 10 Seattle project, the default TWebBrowser but also our TTMSFMXWebBrowser, TTMSFMXWebGMaps,
TTMSFMXWebOSMaps components and the TMS Cloud Pack for FireMonkey cloud services can no longer make a connection to the web. A solution for this issue is to add the following key to the Info.plist file: <key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict> As the Info.plist is automatically generated based on the project options, there is no option to specify a boolean key in a dictionary. To make sure the Info.plist file contains the correct keys in order to link against iOS 9 we have created an iOS9Fix command line executable and a post-build command. 1) Copy the iOS9Fix.exe & iOS9Fix_config.txt files to the project directory.


Pieter Scheldeman

This blog post has received 10 comments.

Woud it be possible to maybe expand on this "fix" of yours?
The reason I''m asking is because I frequently find myself adding these structured attributes to Info.plist:
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>myApp</string>
</array>
<key>CFBundleURLName</key>
<string>com.myName.myApp</string>
</dict>
</array>
Thanks!
--Stefan.
Stefan


We have updated the iOS9Fix executable to extract the keys from an iOS9Fix_config.txt file, you can add your keys in this file and execute the same steps.
Kind Regards,
Pieter
Pieter Scheldeman

Perfect , thank you very much !!!
pedrini franck

Can you tell me , how to get the $(OUTPUTPATH) path in delphi xe
thank you
jason


Bruno Fierens

jason

or can it do that already, and it''s something I''ve missed?
Dave Nottage


The tool always adds the keys at the end of the plist, we will investigate if we can expand this tool to modify existing keys.
Kind Regards,
Pieter
Pieter Scheldeman

Pierce James
All Blog Posts | Next Post | Previous Post
Thank you very much!!
Pederzolli Patrizia