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

iOS files missing after mobile application update #101

Open
whydinkov opened this issue May 20, 2016 · 0 comments
Open

iOS files missing after mobile application update #101

whydinkov opened this issue May 20, 2016 · 0 comments

Comments

@whydinkov
Copy link

There is a problem that have been introduced in the past several versions (since 0.18). The fix
you have done for cache.localUrl caused me some problems (This is the code line 258 from cordova-app-loader-complete.js):

 if(changes > 0){
              // Save the new Manifest
              self.newManifest = newManifest;
              self.newManifest.root = self.cache.localUrl;
              resolve(true);
...

so when you set root property of new manifest with localUrl not with localInternalURL application could not find files when updated. On the following scenario:

  1. install application
  2. use autoupdate some time
  3. release and install new mobile version
    application hangs. I think It's because localStorage is not cleaned and it tries to find application files in wrong directory (localUrl). If it's set with localInternalURL localStorage is also not cleaned but this time path I think is more generic and application finds the right files. So i suggest that's better to take it back to self.cache.localInternalURL. (localUrl searches in files:///..... while localInternalURL searches in cdvfile:///)
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