ionic-cache-src icon indicating copy to clipboard operation
ionic-cache-src copied to clipboard

Doesn't work on launch

Open ttooo opened this issue 8 years ago • 4 comments

Dear Ben,

When I launch the app on Android it doesn't work, I have to go to an other view and then come back it just after that it works fine all the time ! But how to make it works from the beginning ?

For iOS, it never works... I correctly activate the "NSAppTransportSecurity", but still same issue : I just have the loader that appears and doesn't start.

What do you suggest ?

Thanks in advance

To

ttooo avatar May 18 '16 14:05 ttooo

Hey man, you fix that? i have the same problem

jouderianjr avatar Jul 06 '16 21:07 jouderianjr

Hi !

Actually not... So I found an other library that do the trick for me.

https://github.com/andrewmcgivery/ionic-ion-imageCacheFactory

You just have to create a loop to initialize all your images when the controller starts. I don't have so much images on my side, so what I wanted to do it's to keep them in cache so next time the user open my app he can see them even without internet connection. I don't know if it's what you are looking for.

To

ttooo avatar Jul 07 '16 07:07 ttooo

oop,I have the same problem ,want to cry

debug on ios . like don't exec the directive cacheSrc

apanly avatar Oct 08 '16 14:10 apanly

i found the solution to fix this

edit the ionic-coach-src.js (line 353) ,change attrs.$observe('cacheSrc', to scope.$watch('attrs.cacheSrc',

then ionic run ios --device ,it's ok

Let's cheer

refer to : https://github.com/BenBBear/ionic-cache-src/issues/10#issuecomment-162844820

apanly avatar Oct 08 '16 14:10 apanly