Skip to content
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

Blank image (no image) is shown after couple days. #24

Open
necixy opened this issue Apr 25, 2019 · 7 comments
Open

Blank image (no image) is shown after couple days. #24

necixy opened this issue Apr 25, 2019 · 7 comments
Labels

Comments

@necixy
Copy link

necixy commented Apr 25, 2019

Thanks for this awesome library.
I have used it in one of the product for my client and initially it works fine, I preload the images and they are shown even offline.

But after a few days (some random time I guess), it shows blank image. Please see this video:
https://youtu.be/sjB8KkGl0v8

Let me know if this is a known issue or if this can be fixed.

@BHesseldieck
Copy link
Contributor

Could you try/answer the following:

is the library writing any logs?

which caching period did you set?

did you try it on an actual phone? Sometimes the Simulator makes issues due to switching internal app ids.

did you reinstall the app?

@necixy
Copy link
Author

necixy commented Apr 29, 2019

Thanks for checking into this.

I did not set any caching period, so I believe the default should be 3 days. Also after 3 days if cache is deleted, the image should download the image back from server which it does not even when internet is available. Also when this condition happens not even fallback image is shown.

The video I sent is from the real device, it happened in iPhone and Android both, also I couldn't get the chance to get the logs.

Also when we re-install the app and installs again, the problem is gone because the app content is deleted and refetched from the server.

@BHesseldieck
Copy link
Contributor

Can you check if the problem still exists in V0.1.9?

Thank you!

@iamiota
Copy link
Contributor

iamiota commented Jun 15, 2019

I have encountered this problem before, and i did this:

  1. don't call restore continuously, just call it once in app init.
  2. If the app is offline, the expired image will still be deleted. I added a parameter to prevent this from happening. (iamiota@7f5334a)

@dpoliyivets
Copy link

Same problem here.

@BHesseldieck
Copy link
Contributor

will work on this for the next version, thanks for the feedback!

@alexsamesame
Copy link

Hi @BHesseldieck,

We are facing the same problem on iOS devices. Do you have any idea, the way we can fix it ? or next release date ? :)

It's central for us as we develop a picture based communication app for people with disabilities...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants