imsamgarg / firebase_cached_image

Cache Manager and Cached ImageProvider for Firebase Cloud Storage Objects.
MIT License
9 stars 16 forks source link

Where it is cached #12

Open vickygaugau opened 1 year ago

vickygaugau commented 1 year ago

Hi everyone, i have a question

With this lib, these photo is cached when app is launched, and when app is kill, the cached is cleared Or it is stilled cached although app is kill and just only clear if the clear code is called

Thanks

imsamgarg commented 1 year ago

Photos will only be deleted after calling the clear() method. Sometimes the OS will automatically clear those images as well.

vickygaugau commented 1 year ago

Photos will only be deleted after calling the clear() method. Sometimes the OS will automatically clear those images as well.

Thanks for you supporting, But i have a issues I just only the url download : ex https://storage.googleapis.com/abcxyz.... I am not the url like example : ex "gs://bucket_f233/logo.jpg" How can i convert from url download to this?

Thank you very much

imsamgarg commented 10 months ago

For now, you can do something like this:

  final ref = FirebaseStorage.instance.refFromURL("https://storage.googleapis.com/abcxyz");
  final firebaseUrl = FirebaseUrl.fromReference(ref);

In the future version, I'll also use this method to parse URLs in the FirebaseUrl("URL") factory method.