Closed benediktveith closed 4 years ago
@benediktveith please add informations about versions (plugins, pods...) Could you please create a simple example to reproduce? Thanks
@farfromrefug Added the plugins / pods above.
Hmm I retested the plugin in an empty project and it is working there. Seems like the bug is caused because of the uri I am using.
It is basically an endpoint which provides an image as response (something like: xyz.com/image/1234-5678
@benediktveith ok so a few things:
^3.0.5
: When so please give the actual used version (from the node_modules folder). Cause if you didnt do a npm install
might be an old one.
Now that being said i dont think it matters there.
So i am not sure why it would not work in one app but would with others.
Can you share the sample code using your uri.
As a reference might be related to this https://github.com/SDWebImage/SDWebImage/issues/2960@farfromrefug Hey,
Doesn't matter anymore, I investigated further and realised it is working if I am using a domain name instead of my IP-Adress. To explain it a little bit more:
For local device testing (iOS / Android) I am using the IP-Adress of my Mac (192.168.178.XX
).
If I change the url to, for example, projectname.local
, which is the ServerName of one of my virtual hosts running locally, it is working as expected.
Thanks for your fast replies btw :)
Which platform(s) does your issue occur on?
Please, provide the following version numbers that your issue occurs with:
"nativescript-image": "^3.0.5"
Plugins
Podfile
The bug
If I have no network connection on iOS the images are not loaded, even though the images are cached on the disk:
isInDiskCache(key)
returns true, butfailureImageUri
is used.