Skip to content
This repository has been archived by the owner on Oct 2, 2021. It is now read-only.

Android: Incorrect version of index document loaded on HCP #4

Closed
denisbabineau opened this issue Apr 25, 2016 · 1 comment
Closed

Comments

@denisbabineau
Copy link

On reload from HCP, the index document loaded is of the previous version/bundle while other scripts/assets are loaded from the new version/bundle. This can be observed by inspecting meteor_runtime_config.autoupdateVersionCordova which remains the same until the app is restarted (or a browser refresh is forced from chrome inspector).

Adding breakpoints in native code I was able to confirm that remapUri() for the document request was invoked before the call to onReset() on WebAppLocalServer causing the document to be served from the previous bundle.

This appears to be a race condition between the web engine and the main thread as I've seen some cases where onReset() was called first. I've also seen multiple requests go thru before onReset() when putting a breakpoint in onReset().

Can be reproduced with blank project using Meteor 1.3.2.3. This does not occur with iOS.

@hwillson
Copy link
Contributor

There have been several Meteor updates since this issue was created. Please try again using a recent version of Meteor (>= 1.6.x). Thanks!

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

No branches or pull requests

2 participants