KasemJaffer / receive_sharing_intent

A Flutter plugin that enables flutter apps to receive sharing photos, text and url from other apps.
Apache License 2.0
325 stars 372 forks source link

Feature request: don't use cache copy for Android device #222

Open selankon opened 2 years ago

selankon commented 2 years ago

On Android device, on receive a sharing intent, it makes a copy on the app cache folder.

This is slow for a big files, and also, could be not the expected behavior if the app has enough file permissions.

My proposal is to modify how to get file absolute path in order to do not copy it on the cache in case enough permissions are set.

The cache copy is done here or here.

It could be useful to use PickiT library to get absolute path.

This is related to https://github.com/KasemJaffer/receive_sharing_intent/issues/217

selankon commented 2 years ago

I implemented a POC here:

https://gitlab.com/elRepo.io/receive_sharing_intent_pickit/-/merge_requests/1

If you check there, you will see a working example. Cleaning the code should be needed.