Angular - Contentful Network Error


#1

Hi all

I have been developing my first Ionic app using angular and a content service called Contentful . I can get the connection to the API working on my browser based app , but as soon as I launch an IOS simulator or an xcode project I get the following response…

Connection error occurred. Waiting for 2537 ms before retrying… (About 4/5 times)

[{“type”:“eventTask”,“state”:“scheduled”,“source”:“XMLHttpRequest.addEventListener:readystatechange”,“zone”:“angular”,“runCount”:2}],"__zone_symbol__errorfalse":[{“type”:“eventTask”,“state”:“scheduled”,“source”:“XMLHttpRequest.addEventListener:error”,“zone”:“angular”,“runCount”:2}],"__zone_symbol__timeoutfalse":[{“type”:“eventTask”,“state”:“scheduled”,“source”:“XMLHttpRequest.addEventListener:timeout”,“zone”:“angular”,“runCount”:0}],"__zone_symbol__xhrTask":{“type”:“macroTask”,“state”:“notScheduled”,“source”:“XMLHttpRequest.send”,“zone”:“angular”,“cancelFn”:null,“runCount”:0}},"__zone_symbol__currentTask":{“type”:“microTask”,“state”:“notScheduled”,“source”:“Promise.then”,“zone”:“angular”,“cancelFn”:null,“runCount”:0},“line”:71105,“column”:24,“sourceURL”:“http://localhost:8080/build/vendor.js","attempts”:7}

Not really any indication of errors , I have put the following in:

index.html
<meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'" />

config.xml

<allow-navigation href="*"/>

<allow-intent href="*" />

<access origin="*" />

To make sure I have no access issues with the whitelist plugin, but it doesnt seem to be working at alll…