I’m developing a cordova app and hot code push is not working to an android build I created that I installed from APK. It is a signed release apk sideloaded to an android phone (not through the play store)
I think it works for build files because you’ve a Gitlab’s CI configured and you are constantly deploying. Why you want HOC enabled in production? I think what they’re saying here is that the same HOC capability can be used to updated clients code without having them download the APK again.
Are you pointing to a local dev server or a remote production server?
Sorry my bad I understand now, I got mixed up for a moment with Hot Module Replacement (HMR)
So basically you’re saying when the updates are pushed the client mobile devices are not refreshing automatically to pick up the changes, is that correct?
Ok. So I found the culprit now. It was a mismatch of Meteor version.
My machine that created the APk build at Meteor 1.6.1.1
Gitlab-runner machine creating the server build at Meteor 1.6.1
I learned something new with this CI/CD thing. Now I need to remember to add meteor update in the build script whenever I updated meteor. I also removed caching in my CI build script just to be safe (longer build of just 1 minute)
So due to server version mismatch between the server and the published APK after a Meteor update, the hot code push was not being triggered at the client. Good to know…
What we do is use the Cordova env variables at each compile to make sure all clients get updated - but make sure you test on your clients in case the meteor Cordova stack makes breaking changes