nordnet/cordova-hot-code-push

Reading synced file problem

Closed this issue · 2 comments

Hi everyone,
I have a problem using this plugin when the page load content on IOS (Android is ok).
Without apparent reason, some rows in the js code disappear when the content load in page.

This is an example:
tt

Content returned from get in the browser is this:
tt2

If I uninstall the cordova-hot-code-push plugin everything is fine.
Checking the file in the www on cordova-hot-code-push.plugin in the simulator the content seems ok.

Thank you for any support,
Daniele

Hi,
Plugin does not modify files in any way. It only moves them from one directory to another. And that's it... So that's the very weird thing you see in here.

Have you tried to put all correct files in www folder inside the project, and on the server side - don't deploy anything at all so the update would fail? But the plugin should just copy www folder from bundle to the external storage. And your js file should be the same.

If that works - try to deploy on the server the same www folder with the same chcp.json config. Nothing should change.

Then update something minor in www folder on the server side (i.e. add spaces in some html file), rebuild configs and let the plugin update your app. After that - check, what happened.

But again - plugin does not touch the content of the files in any way.

👋 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.