-
Notifications
You must be signed in to change notification settings - Fork 214
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
Uncaught TypeError: savedFS is not a function #205
Comments
Could you please explain how you're running imgcache? If you run the following in your browser console, what response do you get ? |
I use the angular wrapper (angular-imgcache.js#^1.1.0) and get the error when using the Chrome developer tools after running my ionic app on an Android device. If you need further detail, don't hesitate to contact me again :-) Initially I get: INFO: ImgCache initialising After running I get: function (type, size, successCallback, errorCallback) { Strange thing is that it doesn't happen everytime. Just now and then. But when the error message pops up I mentioned in my first post, window.requestFileSystem || window.webkitRequestFileSystem returns undefined. |
I've just merged a PR that fixes browser detection for ionic into master, could you please check with that version? |
@chrisben Problem seems to be not fixed. Still can see it on Android devices |
I'm also seeing this happen, even with the latest version of ionic-img-cache installed. |
Same issue here, with version 1.2.0 |
Hi, I had the same issue. The solution for me was to properly wait for Very helpful library, thx for making it! |
Thanks @csicky for pointing this out. It's actually part of the documentation:
|
Maybe this should be put somewhere more prominent :-) |
I also accept pull requests for the README :) |
@chrisben Ah, ok, I'll check later on today (or on weekend) and reply afterwards. |
README paragraph now bold. There's also a bold statement in the CORDOVA.md document. By the way I also merged my long standing 2.x branch, 2.0.0 is out now! |
@chrisben Still no luck :-( The problem occurs with this code:
called in app.module.js. I have imgcache.js 1.1.0 and angular-imgcache 1.2.0. |
for me it also does not work at all on android. |
Could someone please test the following and check what the console logs display: document.addEventListener('deviceready', function() {
// init
ImgCache.init();
console.log('isCordova?', ImgCache.helpers.isCordova());
console.log('requestFileSystem', window.requestFileSystem);
console.log('cordova', typeof cordova);
console.log('phonegap', typeof phonegap);
console.log('platformId', (cordova||phonegap).platformId);
}); |
You need to install following plugins to fix the savedFS is not a function issue.
|
I've faced this issue, but found that cordova.js was missing on my app |
When running imgcache I get:
Uncaught TypeError: savedFS is not a function
at imgcache.js:633
Am I doing something wrong or is it a bug?
The text was updated successfully, but these errors were encountered: