nordnet / cordova-hot-code-push

[DEPRECATED] - This plugin provides functionality to perform automatic updates of the web based content in your application.
https://github.com/nordnet/cordova-hot-code-push/issues/371
MIT License
979 stars 467 forks source link

File Not funnd error display file browser default error use hcp plugin.Config.xml ErrorUrl Cordova configuration is invalid #190

Closed zwwhappy closed 6 years ago

zwwhappy commented 8 years ago

when in html a tag has error link, the link url not exist in www forder. so app has a error page in browser. Config.xml ErrorUrl Cordova can set a nice html. But use this plugin the error page is browser default. error like that: File not found in file:///data/data/com.xxx/files/cordova-hot-code-push-plugin/2016.07.24-17.15.31/www/common/img/logo.png

nikDemyankov commented 8 years ago

According to cordova documentation this ErrorUrl should be defined like this:

<preference name="ErrorUrl" value="error.html"/>

But in reality for Android it should be like that:

<preference name="errorUrl" value="file:///android_asset/www/error.html"/>

Haven't played with iOS, but I guess it has some similar tricks for displaying error page. And it has nothing to do with the plugin.

I've tried it with and without plugin - behaviour is the same: if you set it properly - custom error page is displayed, if not - default one is used.

nordnet-deprecation-bot commented 6 years ago

👋 Hi! Thank you for your interest in this repo.

đŸ˜ĸ We are not using nordnet/cordova-hot-code-push anymore, and we lack the manpower and the experience needed to maintain it. We are aware of the inconveniece that this may cause you. Feel free to use it as is, or create your own fork.

🔒 This will now be closed & locked.

ℹī¸ Please see #371 for more information.