-
Notifications
You must be signed in to change notification settings - Fork 466
Understanding Update/Install Lifecycle #125
Comments
Yes, at the moment automatically it fetches update only on startup. Right now there is no preference to define, when plugin should ping the server for update. The
The actual update should be loaded in order for these preferences to trigger the update. It is strange, that you could not make work
Maybe unexpected behaviour for the user. If he is on some internal page and plugin done loading update - |
@nikDemyankov , I'm really digging your responsiveness. Thank you. I want to give you more details of my config and workflow to see if we can zero in on the issue. I MUST submit to the app store Friday so I'm all in. Base setup
Deployed base app to iPhone
Release 1
Deploy to iPhone and S3
Then I pushed everything to S3
iPhone Behavior Release 1
Release 2Made changes to index.html and styles.css
Note: Now using ios-CFBundleVersion="1"
Deploy to S3
iPhone Behavior Release 2
At this point I:
So index.html is either not coming down to the device or the device is hanging onto the old index.html. But strangely, all other new files are updated!? I think this is related to issue #99 as well. What tests would you recommend to validate/clarify these issues. Thanks again! ☀️ |
In you project's directory try to open For now I tried both of your setups (locally, without S3) and it worked fine :( |
Thanks, Nik. So my workflow looks ok? Should the original submission to the App Store include ios-CFBundleVersion? Does the updater only pull down the changed files? BTW, I have been running the app thru Xcode and seen no errors. I'm going to start fresh- delete all bucket files, and zero everything out. I'll let you know. |
Yes, looks okey.
Yes, I think it is required anyway by the apple.
Yes, it downloads only changed files.
Good, let me know the results :) |
cordova-hcp build overwrites my chcp.json and eliminates all properties only this remains:
why? |
#16 says something about it, however it is not clear in the docs. |
Yes, my bad, need to add this in the docs. Just create |
Nik, some days ago I felt like updating the files through your plugin works great, but breaks normal update path. Update Path 1 (plugin)
Update Path 2 (standard)
I need to test it again to be shure, but maybe you already know why what where this is coming from. |
Ups forget it, that was the thing with comparing only integer instead of the whole version number... you already fixed. Just for the others see issue #99. Haha what a bad brain... |
👋 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. |
First I must say I’m loving CHCP!
I have some questions that may help clarify the update cycle in my mind.
Does
fetchUpdate
occur only on startup?update
property to (startup
,resume
,now
), the app will only install the new update when I close and restart the app.fetchUpdate
followed byinstallUpdate
.So the question is, how do I get the app to update & install on resume?
Also, are there any disadvantages to setting
"update": "now"
? (other than the obvious - user is redirected to the index page)All tests conducted on iPhone 6+.
The text was updated successfully, but these errors were encountered: