Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ionic hook for iOS9 to add plain http support #284

Open
jskrzypek opened this issue Oct 26, 2015 · 4 comments
Open

Add ionic hook for iOS9 to add plain http support #284

jskrzypek opened this issue Oct 26, 2015 · 4 comments

Comments

@jskrzypek
Copy link
Contributor

https://github.com/driftyco/ionic-package-hooks#re-enable-http-for-ios9

@ghaiat
Copy link

ghaiat commented Oct 30, 2015

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

@ghaiat
Copy link

ghaiat commented Oct 30, 2015

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

@ghaiat
Copy link

ghaiat commented Oct 30, 2015

chmod +x hooks/after_prepare/011_update_config.js

@ghaiat
Copy link

ghaiat commented Oct 30, 2015

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants