Add ionic hook for iOS9 to add plain http support
jskrzypek opened this issue · comments
Gilles Haiat commented
use this hook to do that , it s more generic
https://github.com/mhartington/cordova-config-utils
Gilles Haiat commented
npm install -D elementtree
npm install -D plist
npm install -D xcode
Gilles Haiat commented
chmod +x hooks/after_prepare/011_update_config.js
Gilles Haiat commented
add this to the config.xml
<config-file platform="ios" target="*-Info.plist" parent="NSAppTransportSecurity">
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
</config-file>
<config-file platform="ios" target="*-Info.plist" parent="CFBundleLocalizations">
<array>
<string>en</string>
<string>fr</string>
</array>
</config-file>
</platform>