I’m having an issue getting Hot Code Push working on Android (haven’t tried iOS) in production using mup.
Working in development works well via meteor run --android-device
. The app opens on my USB connected Android phone, I make a small change to the html and the android device updates almost instantly.
Then I deploy with mup using the settings below. Goes OK. Then I sign & align the apk and copy it to my phone, install and it works OK.
Then if I make another small change to the html and re-deploy via mup, web clients update OK, but the Android app never receives the HCP. Even it I leave it for a while, then kill and reload it, it still has the same old html.
What could I be doing wrong?
I’ve opened an issue on meteor-up here.
mup config:
module.exports = {
servers: {
one: {
host: 'virtualinout.com',
...
}
},
meteor: {
name: 'virtualinout',
path: '../',
docker: {
image: 'zodern/meteor:root'
},
servers: {
one: {}
},
buildOptions: {
//serverOnly: true, // I've tried all permutations of each of
server: 'https://www.virtualinout.com' // these lines commented or not
},
env: {
ROOT_URL: 'https://www.virtualinout.com',
MAIL_URL: ...
},
enableUploadProgressBar: true,
deployCheckWaitTime: 300
},
proxy: {
...
},
mongo: {
version: '3.4.1',
servers: {
one: {}
}
}
};
https://www.virtualinout.com/__cordova/manifest.json :
cordovaCompatibilityVersions: {
android: "b4255a094c2d1bcc617f2a18fbfab66d768408f9",
ios: "43bc6556084ea4690d53630ba43b8f4d7fc8433b"
}
version: "38700ae8ff0e18e5afb5461237aedb29f7a1de8a"
Note that the android version “b4255…” was the same before and after the html change and redeployment.
https://www.virtualinout.com/ __meteor_runtime_config__
:
autoupdateVersion: "2e2c4778578a0c6a05c59d794a6766435cabb35a",
autoupdateVersionCordova: "38700ae8ff0e18e5afb5461237aedb29f7a1de8a",
autoupdateVersionRefreshable: "3a18e34b84687acc299fd1e63121358697766065"
Any help greatly appreciated!