Open iyashsoni opened 5 years ago
FYI, ran into this a couple days ago. Looks like it is related to the way the routes are handles and the way the files are served from iOS, but perhaps you are seeing it on Android as well. Would quite the source, but I can't recall where I found the solution, which was effectively doing the following:
// set the last item in the history to /, you could replace as well or add a query string for a forward after first load (e.g. /?redirectUrl=/tabs/tab1 )
history.pushState({}, 'Home', '/');
// now do your reload
window.location.reload();
Hello all, I am trying an Ionic 4 app with "cordova-plugin-ionic-webview": "4.0.0", and I am facing the blank white screen issue on Android Platform only.
Now the scenario is, The app starts and we make a loadUrl call to CordovaActivity with this parameter
file:///android_asset/www/index.html
This works fine.But then, we download some web resources and put into path
/data/user/0/io.ionic.starter/no_backup/www/
Next, we reload the app and try to load the new file with URLfile:///data/user/0/io.ionic.starter/no_backup/www/index.html
Here is when we hit the blank white screen. Any help is appreciated. I have verified that the file actually exists at the expected path.
Thanks.
ionic-info:
cordova plugin ls: