hi,
i was able to make hot update work but i have a problem. let’s say i install ver 1 and hot update to ver 2.
then i uninstall the app and later install ver 3.
the problem is that the files in hot update(ver 2) are still on my device and they override the ver 3 files i just installed.
how do i make sure the old files are deleted and ver 3 runs on my device?
thanks!
no,
i meant i install ver 1
hot update it to ver 2
uninstall
install a new base app, now with ver 3
in this case i was still seeing ver 2.
now i can try to solve my problem myself. i just need to clarify some points…
1.is the hot update initially(before restart) stored in getWritablePath+“hotUpdateAssets/_temp”?
is it ever the case that before restart the files are not in the _temp folder?
2. should the fileUtils search paths contain the path of the current location of the update files? what else does it contain?
So, the problem probably is that. The manifest that goes inside the app has a variable version in it, that usually is 0.0.0.0, so everything that was on the server is newer. If the local version can be newer than the remote one (that shoudn’t be), then the version of the local manifest should be updated to.
Dont Know, I think that only the Engine Team member can answer that.
Same as above, but AFAIK, the search paths are empty by default, that line that you add in the main.js file adds the hot update file’s path into it.