Running ionic emulate with App Transport Security disabled

I’ve added code to disable App Transport Security in my app for iOS 9:

<key>NSAppTransportSecurity</key>
<dict>
    <key>NSAllowsArbitraryLoads</key><true/>
</dict>

However, this only works if I don’t build the app using the ionic command-line tool in any way (I have to go through Xcode). How can I keep this code there but still execute commands line ionic emulate and ionic run? Thanks!

1 Like