Skip to content
This repository has been archived by the owner on Oct 1, 2018. It is now read-only.

Clarification required on update process for iOS and Android to avoid immediate updates #194

Closed
barocsi opened this issue Aug 6, 2016 · 2 comments

Comments

@barocsi
Copy link

barocsi commented Aug 6, 2016

Hello,

I have the following workflow:
compile www folder for android
do: cordova-hcp build
do: cordova build -- chcp-production --release
Android installed.
I upload the www folder with chcp.json to the application server
so when android app is started there is no problem.

But on iOS later, I do not cordova prepare -- chcp-production the above www folder with that chcp.json, but issue the same steps. But that will result a different chcp.json and the iOS app will think the server chcp.json and its local chcp.json is different and immediately updates the app.

What is the best workflow of avoiding immediate updates?

Thanks!

@nikDemyankov
Copy link
Member

You can do the updates manually via JS API. Please, read more about this on the wikki page.

Also, don't forget to disable auto download and installation.

I think you already found out, that if release preference is different in server's and local chcp.json config - update will be downloaded to the app. This is because plugin doesn't compare release as "greater", it just check if it is different. There is a plan for improving that: #161

@nordnet-deprecation-bot
Copy link
Contributor

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

@nordnet nordnet locked and limited conversation to collaborators Sep 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants