angular-imgcache.js
angular-imgcache.js copied to clipboard
Error when running on ios (ionic)
I am seeing this error using ionic (works fine on the browser but not in iOS)
TypeError: undefined is not a function (evaluating 'window.requestFileSystem(Helpers.getCordovaStorageType(ImgCache.options.usePersistentCache), 0, _gotFS, _fail)')
I have followed the all the steps in the docs but still getting the error.
I tracked the error to this line (called from the init function):
if (Helpers.isCordova()) { // PHONEGAP window.requestFileSystem(Helpers.getCordovaStorageType(ImgCache.options.usePersistentCache), 0, _gotFS, _fail);
in imgCache.js line 545. Anyone else had this problem?
You haven't put your init inside an ionic ready
Yes I did
I just got the same issue. I doublechecked, my ImgCache.$init();
is inside $ionicPlatform.ready()
.
Any ideas? I'm developing for iOS9. Did anybody successfully test imgcache with iOS9?
Cordova CLI: 5.1.1
Ionic Version: 1.0.1
Ionic CLI Version: 1.6.1
Ionic App Lib Version: 0.3.3
ios-deploy version: Not installed
ios-sim version: 4.1.1
OS: Mac OS X Yosemite
Node Version: v0.12.7
Xcode version: Xcode 6.4 Build version 6E35b