Open Lindsor opened 4 years ago
I'm not able to reproduce this. How are you running the app once it's built?
Im doing the same thing i do for my other ionic projects:
npx ionic cordova build android
this puts apk in platform/android/.../app-debug.apk
then doing:
adb install -d -r /<path-to-apk>
What's the URL that it loads in the web view? Mine is http://localhost/home
.
@dwieeb dont kill me here. I tested 5 projects yesterday and all failed. Just did one more today to get you more details and it worked now.
I will keep an eye out and see if it comes back but i think you can close this one.
Haha, no worries! I've definitely seen this issue reported before. It happens when there's an inconsistency with the <base href="/" />
and whatever is serving the app. It won't work on file://
protocol (i.e. you can't just open the index.html
in your browser and expect it to work). It needs HTML5 routing capability, which the web view in our Cordova plugin should support.
Maybe you were testing it on a really old Android device? I'm out of ideas.
Galaxy S20... if thats already considered old were screwed haha. It most likely has to do with some sort of version issue with either cordova or one of the dependencies.
Yeah, it should work on an S20 😂
This issue hasn't been solved. I ran into the same exact issue. Any solutions?
This issue hasn't been solved. I ran into the same exact issue. Any solutions?
by removing (base href="/") and replace (base href="." )from my index.html file I fixed all the relative routes and my problem.
Description: When creating a blank cordova project with the latest Ionic cli (6.7.0) and running it on android the app doesn't load.
Steps to Reproduce:
Then check the chrome console and see:
My
ionic info
: