# Image don't show on devices

**URL:** <https://forum.ionicframework.com/t/image-dont-show-on-devices/104307>\
**Category:** ionic-v3\
**Created:** [September 5, 2017, 12:16pm UTC](https://forum.ionicframework.com/t/image-dont-show-on-devices/104307 "2017-09-05T12:16:42Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![arsene123](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/arsene123/32/102588_2.png) [@arsene123](https://forum.ionicframework.com/u/arsene123)\
**Post date:** [September 5, 2017, 12:16pm UTC](https://forum.ionicframework.com/t/image-dont-show-on-devices/104307/1 "2017-09-05T12:16:42Z")

</div>

hi, i have my api when a make a http request in the browser everything works well, but on the devices android image dont’show!!! any help please?

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [September 5, 2017, 12:18pm UTC](https://forum.ionicframework.com/t/image-dont-show-on-devices/104307/2 "2017-09-05T12:18:33Z")

</div>

What is the code you use to include images?  
Does it work in `ionic serve`?

---

<div class="post-metadata">

**Author:** ![arsene123](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/arsene123/32/102588_2.png) [@arsene123](https://forum.ionicframework.com/u/arsene123)\
**Post date:** [September 5, 2017, 12:19pm UTC](https://forum.ionicframework.com/t/image-dont-show-on-devices/104307/3 "2017-09-05T12:19:42Z")

</div>

with ionic serve it work, not in the device

```auto
<ion-list>
    <button ion-item *ngFor="let data of reponse" >
      <ion-thumbnail item-start>
        <img [src]="data.photo" />
      </ion-thumbnail>
      <p>{{data.nom}}</p>
    </button>
  </ion-list>

```

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [September 5, 2017, 12:49pm UTC](https://forum.ionicframework.com/t/image-dont-show-on-devices/104307/4 "2017-09-05T12:49:53Z")

</div>

> [@arsene123](#):
>
> \<img [src]=“data.photo” /\>

What is the value of `data.photo`?

Are these local pictures or from remote locations?

---

<div class="post-metadata">

**Author:** ![arsene123](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/arsene123/32/102588_2.png) [@arsene123](https://forum.ionicframework.com/u/arsene123)\
**Post date:** [September 5, 2017, 1:00pm UTC](https://forum.ionicframework.com/t/image-dont-show-on-devices/104307/5 "2017-09-05T13:00:50Z")

</div>

photo is the column in my api, pictures are on aws s3

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [September 5, 2017, 1:01pm UTC](https://forum.ionicframework.com/t/image-dont-show-on-devices/104307/6 "2017-09-05T13:01:31Z")

</div>

Then check your devices console log for output:

Did you remote debug the problem on the device already?  
Follow these instructions here to debug the problem in Safari dev tools: [https://ionic.zone/debug/remote-debug-your-app#ios](https://ionic.zone/debug/remote-debug-your-app#ios)  
Follow these instructions here to debug the problem in Chrome dev tools: [https://ionic.zone/debug/remote-debug-your-app#android](https://ionic.zone/debug/remote-debug-your-app#android)  
Look at the console and network tabs for errors.

---

<div class="post-metadata">

**Author:** ![arsene123](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/arsene123/32/102588_2.png) [@arsene123](https://forum.ionicframework.com/u/arsene123)\
**Post date:** [September 5, 2017, 1:02pm UTC](https://forum.ionicframework.com/t/image-dont-show-on-devices/104307/7 "2017-09-05T13:02:04Z")

</div>

no error when i debug

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [September 5, 2017, 1:02pm UTC](https://forum.ionicframework.com/t/image-dont-show-on-devices/104307/8 "2017-09-05T13:02:57Z")

</div>

This is not possible, otherwise it would show the image (or you don’t actually try to load the picture there).

---

<div class="post-metadata">

**Author:** ![Sidharth\_1999](https://avatars.discourse-cdn.com/v4/letter/s/d78d45/32.png) [@Sidharth\_1999](https://forum.ionicframework.com/u/Sidharth_1999)\
**Post date:** [September 5, 2017, 1:47pm UTC](https://forum.ionicframework.com/t/image-dont-show-on-devices/104307/9 "2017-09-05T13:47:15Z")

</div>

I had the same issue : Here’s what fixed it :

Change your image paths from ‘…/assets/images/someimg.jpg’ to 'assets/images/someimg.jpg’  
The reason this works is because index.html is the file that runs the app, so your image paths need to be relative to index.html.

---

<div class="post-metadata">

**Author:** ![ShehramTahir](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/shehramtahir/32/110823_2.png) [@ShehramTahir](https://forum.ionicframework.com/u/ShehramTahir)\
**Post date:** [September 5, 2017, 5:50pm UTC](https://forum.ionicframework.com/t/image-dont-show-on-devices/104307/10 "2017-09-05T17:50:08Z")

</div>

Your images were stored locally not remotely.  
Because they exist in your assets

---

<div class="post-metadata">

**Author:** ![Sidharth\_1999](https://avatars.discourse-cdn.com/v4/letter/s/d78d45/32.png) [@Sidharth\_1999](https://forum.ionicframework.com/u/Sidharth_1999)\
**Post date:** [September 5, 2017, 5:51pm UTC](https://forum.ionicframework.com/t/image-dont-show-on-devices/104307/11 "2017-09-05T17:51:34Z")

</div>

Oh right, missed the part where he said his pictures were on aws s3. My bad

---

<div class="post-metadata">

**Author:** ![arsene123](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/arsene123/32/102588_2.png) [@arsene123](https://forum.ionicframework.com/u/arsene123)\
**Post date:** [September 5, 2017, 6:57pm UTC](https://forum.ionicframework.com/t/image-dont-show-on-devices/104307/12 "2017-09-05T18:57:02Z")

</div>

Any Idea ? I don’t find any error when debuging

---

<div class="post-metadata">

**Author:** ![arsene123](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/arsene123/32/102588_2.png) [@arsene123](https://forum.ionicframework.com/u/arsene123)\
**Post date:** [September 5, 2017, 6:57pm UTC](https://forum.ionicframework.com/t/image-dont-show-on-devices/104307/13 "2017-09-05T18:57:35Z")

</div>

No errors, like i told you !!!

---

<div class="post-metadata">

**Author:** ![temohpab](https://avatars.discourse-cdn.com/v4/letter/t/f0a364/32.png) [@temohpab](https://forum.ionicframework.com/u/temohpab)\
**Post date:** [September 5, 2017, 7:01pm UTC](https://forum.ionicframework.com/t/image-dont-show-on-devices/104307/14 "2017-09-05T19:01:03Z")

</div>

Maybe you place the photo in the wrong path??

try to put the photo in www/assets/img/img.png and then in code

```auto
<img class="classname " src="assets/img/img.png"/>

```

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [September 5, 2017, 7:04pm UTC](https://forum.ionicframework.com/t/image-dont-show-on-devices/104307/15 "2017-09-05T19:04:29Z")

</div>

> [@arsene123](#):
>
> No errors, like i told you !!!

So you are telling me that 1) the images are showing in the browser when using `ionic serve` but 2) they are not showing when testing on Android after building with `ionic cordova build android` and 3) you are not getting any network or console output that looks like an error? That is pretty much impossible.

If it is a security problem, the network panel will show something with the HTTP request.  
If it is a wrong/broken URL, same.  
If it is a HTML/JS problem, you will get something in the console.

---

<div class="post-metadata">

**Author:** ![temohpab](https://avatars.discourse-cdn.com/v4/letter/t/f0a364/32.png) [@temohpab](https://forum.ionicframework.com/u/temohpab)\
**Post date:** [September 5, 2017, 7:05pm UTC](https://forum.ionicframework.com/t/image-dont-show-on-devices/104307/16 "2017-09-05T19:05:48Z")

</div>

This happen to me one time… I fix it like i mentioned above

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [September 5, 2017, 7:08pm UTC](https://forum.ionicframework.com/t/image-dont-show-on-devices/104307/17 "2017-09-05T19:08:24Z")

</div>

Yes but as written multiple times above he is not talking about a local file in `assets`.

---

<div class="post-metadata">

**Author:** ![jaydz](https://avatars.discourse-cdn.com/v4/letter/j/858c86/32.png) [@jaydz](https://forum.ionicframework.com/u/jaydz)\
**Post date:** [September 5, 2017, 7:44pm UTC](https://forum.ionicframework.com/t/image-dont-show-on-devices/104307/18 "2017-09-05T19:44:09Z")

</div>

If it is a remote connection, does the async pipe need to be used, as it does when connecting with Firebase?

> [@arsene123](#):
>
> \<button ion-item \*ngFor=“let data of reponse” \>

to  
`<button ion-item *ngFor="let data of response | async">`

---

<div class="post-metadata">

**Author:** ![arsene123](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/arsene123/32/102588_2.png) [@arsene123](https://forum.ionicframework.com/u/arsene123)\
**Post date:** [September 5, 2017, 7:49pm UTC](https://forum.ionicframework.com/t/image-dont-show-on-devices/104307/19 "2017-09-05T19:49:19Z")

</div>

can i talk to you in private?

---

<div class="post-metadata">

**Author:** ![arsene123](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/arsene123/32/102588_2.png) [@arsene123](https://forum.ionicframework.com/u/arsene123)\
**Post date:** [September 5, 2017, 7:49pm UTC](https://forum.ionicframework.com/t/image-dont-show-on-devices/104307/20 "2017-09-05T19:49:58Z")

</div>

i’m using heroku hosting not firebase

[Next page](https://forum.ionicframework.com/t/image-dont-show-on-devices/104307.md?page=2)
