Ionic View App with iOS device where data has not been shown

Hi,

I have developed a small Ionic2 app.It is working fine on both locally on the web browser and “Ionic view” app’s Android device.But the problem is on the Ios device.It shows UI correctly but no data.I have tested this on Ionic app viewer on Ios mobile device.Can you tell me why this strange behavior. I’m using Php as a web API layer (or back end).Can you tell me where is the issue is? If you need any info please let me know.At this moment I don’t know what to provide here?

Do you have http CORS enabled for your app for instance? Maybe your browser is blocking the request?

Hi,
How can I see that? Any configuration or something like that? When I work with my local PC where I use CORS (https://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi?hl=en) plugin on chrome browser.Otherwise, I can not use Post request to the backend API.Any clue? This is working fine on the Android device, though.Thanks.

This is on my Index.html file.Is this what you’re telling? How to change it?

<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-eval' 'unsafe-inline' *; object-src 'self'; style-src 'self' 'unsafe-inline'; media-src *">

Check for <access origin="*" /> in your config.xml

Thanks for the support.My issue was a DateTime format issue.I have used MomentJS and it is working fine on Android and browser.But safari requires it as ISO format.So when I changed the API then no issues.Cheers :slight_smile: