cordova-plugin-ionic-webview: 2.x on iOS: incompatibility with cordova-hot-code-push-plugin - showing white page after app was killed and restarted
Using cordova-hot-code-push-plugin, if you kill the app via appswitcher and restart it, a white page is displayed.
The location of this new white index page is:
in iOS simulator:
http://localhost:8080/Users/****/Library/Developer/CoreSimulator/Devices/***/data/Containers/Data/Application/***/Library/Application%20Support/com******.prod/cordova-hot-code-push-plugin/2018.08.09-10.50.04/www//index.html
on real device:
http://localhost:8080/var/mobile/Containers/Data/Application/****/Library/Application%20Support/com.******.prod/cordova-hot-code-push-plugin/2018.08.09-10.50.04/www//index.html
When i the reload the app vie Webinspector i see it’s a 404.
If i do a window.location.replace('http://localhost:8080/index.html') everything works as intended - until the app gets killed and restarted again.
it seems to have to do with #138
About this issue
- Original URL
- State: open
- Created 6 years ago
- Comments: 35 (3 by maintainers)
@superbigsoft Thanks for providing your repo, it works for me on iOS. However, I’m also seeing this same issue on Android. Are you able to check into a similar fix for Android like you’ve done for iOS?
Its been a months now with no news.
Is the web server still going to be removed, or has the situation changed? I realise these things take time, but it would be nice to know whats going to happen.
@mlynch, willing to comment?
Hi @mlynch any update on this issue ?