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

Hot code installs an older version #54

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

Hot code installs an older version #54

barocsi opened this issue Aug 6, 2016 · 4 comments

Comments

@barocsi
Copy link

barocsi commented Aug 6, 2016

Hello,

I have an issue, created a new release, ran
cordova-hcp build
cordova build android -- chcp-production --release
installed apk
on the remote app server the chcp json is way older

{
  "content_url": "x",
  "min_native_interface": 7,
  "android_identifier": "x",
  "apple_identifier": "1089624220",
  "update": "now",
  "release": "2016.06.11-17.39.13"
}

than the version generated and installed:

{
  "content_url": "x",
  "min_native_interface": 7,
  "android_identifier": "x",
  "apple_identifier": "1089624220",
  "update": "now",
  "release": "2016.08.06-11.57.19"
}

But it still downloads the older one. Is there a way I can check that during compilation it bundles the local chcp.json properly? Or can I debug somehow that what is the locally stored version and why it updates to the older?

Thanks.

@barocsi
Copy link
Author

barocsi commented Aug 6, 2016

And additionally (it might be a different issue) it claims the following:

Install failed Object {code: -7, description: "Can't copy files from previous release to the new release"}

How can I debug this issue?

Thanks.

@barocsi
Copy link
Author

barocsi commented Aug 6, 2016

Ok it seems for the olderversion, it really only checks string difference and does NOT compares dates.

@barocsi
Copy link
Author

barocsi commented Aug 6, 2016

@barocsi barocsi closed this as completed Aug 6, 2016
@nikDemyankov
Copy link
Member

Yes, it doesn't. For now they are compared as strings. There is a plan to use instead of the date - unix timestamp, and define if we want to compare values - nordnet/cordova-hot-code-push#161

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

2 participants