mcfly-io / generator-mcfly

A Yeoman generator for scaffolding an application using angular, browserify, ionic and famous

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add ionic hook for iOS9 to add plain http support

jskrzypek opened this issue · comments

use this hook to do that , it s more generic
https://github.com/mhartington/cordova-config-utils

npm install -D elementtree
npm install -D plist
npm install -D xcode

chmod +x hooks/after_prepare/011_update_config.js

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>