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

Where it is cached #12

Open
vickygaugau opened this issue Aug 22, 2023 · 3 comments
Open

Where it is cached #12

vickygaugau opened this issue Aug 22, 2023 · 3 comments

Comments

@vickygaugau
Copy link

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
Copy link
Owner

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

@vickygaugau
Copy link
Author

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
Copy link
Owner

imsamgarg commented Nov 9, 2023

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.

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

No branches or pull requests

2 participants