angular-imgcache.js icon indicating copy to clipboard operation
angular-imgcache.js copied to clipboard

Error when running on ios (ionic)

Open daphnawegner opened this issue 9 years ago • 4 comments

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.

daphnawegner avatar Jun 14 '15 18:06 daphnawegner

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?

daphnawegner avatar Jun 23 '15 20:06 daphnawegner

You haven't put your init inside an ionic ready

scotthooker avatar Aug 03 '15 14:08 scotthooker

Yes I did

daphnawegner avatar Aug 03 '15 15:08 daphnawegner

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 

christianseel avatar Aug 03 '15 21:08 christianseel