Skip to content

Live Update: bundle is preserved after app update? #246

Answered by robingenz
mustafa0x asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, sorry for my late answer. For some reason I did not receive a notification for this discussion.

I am testing the live update plugin locally, on a simulator. I updated the bundle (downloadBundle, setBundle, reload). Then I made some changes to my app and ran npm exec cap run. When the new app version opened on the simulator, the old bundle was active!

Yes, this is because the app no longer uses the default bundle but the latest live update. If you run npm exec cap run, the default bundle will be overwritten, but it is not currently in use because you have set another bundle via the live update plugin. You then have three options during development:

  1. Call the reset() method to reset …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mustafa0x
Comment options

Answer selected by robingenz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants