Ionic Compiled in IOS NSURLConnection error 1100


#1

I am trying to run my ionic app on an iphone after successfully compiling in native IOS in xcode. All of the functionality is there, but it is not loading any of the data from the API’s that we are calling (which are http, instead of https). When running on a web browser all the data loads fine, but in ios the xcode terminal prints the following:

2018-02-20 12:16:05.796324-0500 MyApp[374:30499] NSURLConnection finished with error - code -1100

I have also added the domain we are calling that is http to allow insecure http loads in the info.p-list by doing the following (not sure if this includes all ports, as our API’s are on port 5000):

<key>NSAppTransportSecurity</key>
<dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
    <key>NSExceptionDomains</key>
    <dict>
        <key>lndappw.wpi.edu</key>
        <dict>
            <key>NSExceptionAllowsInsecureHTTPLoads</key>
            <true/>
            <key>NSIncludesSubdomains</key>
            <true/>
        </dict>
    </dict>
</dict>

At this point I am at a complete loss of what has gone wrong, the only other strange thing I have noticed is that in xcode all of the GCDWebServer… plugin files are red


#2

Did you ever find a solution? I am having the same issue using Ionic Native File plugin.


#3

let videoURL = NSURL(fileURLWithPath: file_string) as URL