More control over hot code push reloading for your production apps. Designed to replace mdg:reload-on-resume and provide a more production-ready approach.
28
stars
22
forks
source link
Need to call WebAppLocalServer.switchToPendingVersion when reloading? #18
I came across issues with Android not updating to the HCP after calling Reloader.reload() (working fine with iOS).
I found out later, having updated cordova-plugin-meteor-webapp (to 1.6.5) since 1.6.1, WebAppLocalServer.switchToPendingVersion has been introduced. The changelog for Meteor 1.8.1 also mentioned to use this if using a third party package to handle HCP. Refer to this comment which summarises.
I've currently got a workaround for this when we want to call Reloader.reload():
WebAppLocalServer.switchToPendingVersion(() => { Reloader.reload() })
What I want to raise is should there be a fix to address this?
I came across issues with Android not updating to the HCP after calling Reloader.reload() (working fine with iOS). I found out later, having updated
cordova-plugin-meteor-webapp
(to 1.6.5) since 1.6.1, WebAppLocalServer.switchToPendingVersion has been introduced. The changelog for Meteor 1.8.1 also mentioned to use this if using a third party package to handle HCP. Refer to this comment which summarises.I've currently got a workaround for this when we want to call Reloader.reload():
WebAppLocalServer.switchToPendingVersion(() => { Reloader.reload() })
What I want to raise is should there be a fix to address this?