Image don't show on devices

I know. I’m wondering if the same principal of async might apply regardless.

it is a pi, all photo’s are hosting on aws s3

when i run

ionic cordova emulate android it works

When does it not work?

i find the error, it on aws. i’ll into this

just to say thanks to all of you for reply. i solve the problem

Can you share what was wrong and what you did to solve it?

the problem was with my backend, i just add cors to my aws s3 account.

1 Like

Ok. Did you figure out why the CORS error wasn’t displayed in your app? Normally this causes console.log output.

after enable the cors i add a https protocol to my bucket, after thet everything works

first of all sorry about my bad English, because we speak Portuguese on my country.
i had same inssue on my ionic 3 app.
the image appear on browser with ionic serve, but dont on android device.
i tried debug remote device on chrome and get me the following error:

7fa1ea1d73789d207ef51e6941913d5e_image.jpg:1 GET http://localhost:1337/parse/files/myAppId/7fa1ea1d73789d207ef51e6941913d5e_image.jpg net::ERR_CONNECTION_REFUSED

when i get this image url and put on postman return the image stored on my API

any help…

Hello,

really…a link to your local host…well.

Often the images are linked to src folder, but all links must been seen from index.html in www folder. On browser src folder is available, also www folder, but on device there is no src folder.

best regards, anna-liebt

sorry about anything …
but in my case images is stored on cms
and acess is not locally is remote by url

Hello,

maybe localhost? :wink:

As long you do not provide related whatever, everything is guessing.

Best regards, anna-liebt

Thanks to replay…
localhost is because my cms is hosted on my laptop…

When you are running on device, localhost is that device. How on earth would you expect a phone to know that you even have a laptop?

ok let me explained well, i have cms run on my laptop and my android device is on same network so wen i run the app on device with ip address of my laptop everything run well and any data is loaded except images…