I am building a web app + an hybrid Cordova app.
From what I read, it is best to provide relative paths to Cordova. I first had an issue with this solution but solved in using the <base>
tag, and almost everything works fine now.
Scripts and stylesheets load just fine on both my web app and my hybrid app. However images do not. They refuse to load properly on the mobile app.
Here are some examples to be more specific, taken from Chrome's device inspector :
Scripts
<script src="library/js/libs/require.js" data-main="library/js/dependencies.js"></script>
This is properly resolved by the hybrid app, the file is loaded properly. However, if I try to load an image using the same relative path logic :
Images
<img src="library/images/mvp/user_default_avatar.png">
This is not resolved properly, the image isn't loaded. Any suggestion as to why I am facing this inconsistant behaviour ?