Images not displayed on Android device

Working now! Thanks!

Hi @satish11nov ,

You are right It works in browser, but will it work in device?
I tried it and when I build the apk file and installed it on the Android device the Image is not displayed there but it is displaying in browser.

this works for both the ionic lab and on device : copy the imgs folder to www/build and load your assets like this: background : url( img/background.png);

1 Like

If you are using the VS editor then copy the relative path of the image.
For example: background-image: url(‘src/assets/PokĂ©mon_Pikachu_art.png’);
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
text-align: center;
It is working in both Android and Browser.