I’m my html page I have a ion-content with the class getstart, with a background image, placed in assets/img.
It works perfectly into the web browser, but wen I test the app with the apk, the background remains white.
I know that It’s a recurrent question, but all the answers that I found (in this forum or other sites) don’t work for me.
This is my scss code, placed inside app.scss
.getstart{
background: url('../assets/img/venice.jpg') no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
background-size: cover;
}
I tryied changing che image url like ‘/assets/img/venice.jpg’ , but nothing worked.
Use Chrome’s remote debugging function. Once your apk is running, tunnel into your app using it. Then you can inspect the CSS and explore live adjustments. Whenever I have a pathing issue, that is typically how I resolve it.
I solves this, it was a silly mistake. I didn’t know that the apk it’s case sensitive. My image was a .JPG and in the url I write .jpg so the apk did not recognize any image.