capacitor-community / photoviewer

⚡ Capacitor plugin to view table images with fullscreen and sharing capabilities.
MIT License
53 stars 26 forks source link

feat: Add Save Image Option on Android #71

Open tiennp-dev opened 2 months ago

tiennp-dev commented 2 months ago

Is your feature request related to a problem? Please describe:

On iOS, the share button includes a "Save Image" option, which is very convenient. However, this option is missing on Android.

image

Describe the solution you'd like:

It would be great to have a similar "Save Image" option on Android, as there currently isn't a straightforward way to download images.

image

Additional Context:

As a temporary workaround, I modified the image's save path to an external directory when the share button is pressed, so user can find the image in their photo. However, this solution is not ideal. Since I'm using Ionic and not deeply familiar with native code, please feel free to correct me if I've misunderstood anything.

image

Looking forward to your feedback.

robingenz commented 2 months ago

This is the default share modal of the OS. As far as I know, there is simply no "Save photo" button on Android. It's the same for the Capacitor Share plugin.

tiennp-dev commented 2 months ago

Hi @robingenz, thank you for your prompt response. I understand the situation now. I have a follow-up question: Is it feasible to add a separate “Save” button adjacent to the “Share” button? I believe that would help a lot with user experience.

robingenz commented 2 months ago

I have just recently taken over the maintenance of the project. Unfortunately, I don't have enough time at the moment to familiarize myself and implement the feature. You are welcome to create a PR. Otherwise I would close the issue as not planned for now.