ionic-team / ionic-team/cordova-plugin-ionic-webview

2.x on iOS: incompatibility with cordova-hot-code-push-plugin - showing white page after app was killed and restarted

Open
#143 35 comments 0 reactions 0 assignees View on GitHub
Dominant language
Objective-C
Stars
493
Forks
410
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.