Skip to content
This repository has been archived by the owner on Aug 17, 2019. It is now read-only.

Latest version 1.3.0 no longer works #1

Open
DanLuczywo opened this issue Feb 5, 2017 · 5 comments
Open

Latest version 1.3.0 no longer works #1

DanLuczywo opened this issue Feb 5, 2017 · 5 comments

Comments

@DanLuczywo
Copy link

Have just built my app with the latest version and the call to window.cache.clear(clearCacheSuccess, clearCacheError); does not return so my app hangs.

Reverted to version 1.1.0 and all is well.

Have there been any significant changes to cause this?

@rehiy
Copy link
Owner

rehiy commented Feb 5, 2017 via email

@DanLuczywo
Copy link
Author

So how do I now use this plugin?

@harishintimetec
Copy link

harishintimetec commented May 10, 2017

Latest version of plugin is not working. It is not clearing the cache while using below code :

function clearCache() {
var success = function(status) {
alert('Cleared');
};
var error = function(status) {
alert('Error: ' + status);
};
window.CacheClear(success, error);
});

I tried while running the application. I have one button on Home screen to clearing the cache. So once user tab on ClearCache button, it will call the above function. I am getting the response in success but nothing is clearing from application web view. I have developed Hybrid Mobile application. That is running in iOS WebView.

Please let me know what is the correct usage of the plugin and how?

Thanks.

@bpetty-formfast
Copy link

I am having the same issue as @DanLuczywo. @DanLuczywo, from your example, it almost looks like you are using the other cache clearing plugin: https://www.npmjs.com/package/cordova-plugin-cache

It is super easy to get these two confused. Long story short, both of them are hanging for me.
I am using Cordova 7.0.1 and cordova-ios 4.4.0

          window.CacheClear(
              function (status) { 
                  alert('status');
              },
              function (error) { 
                  alert('cache error: ' + error);
              }
          );

It is able to call the CacheClear.js function just fine... but never calls back.

@rehiy
Copy link
Owner

rehiy commented Feb 7, 2019

please use the 1.3.7

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

4 participants