Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to call WebAppLocalServer.switchToPendingVersion when reloading? #18

Open
wkeithchau opened this issue Oct 2, 2019 · 0 comments
Open

Comments

@wkeithchau
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant