How to save image to device gallery?

How to save image to device gallery?

  

Hi, 

We have a chat in our mobile app that allows users to exchange images. What component should we use to add possibility to save image to users device image gallery?

Thank you.

Solution

Hi Mykola,

I'm not sure that there's a component already, but you can create a plugin yourself and maybe make it available on Forge  .

I believe this is the plugin you need: https://www.npmjs.com/package/cordova-plugin-save-image

(here's a masterclass that explains how to create a plugin with P10: https://www.outsystems.com/learn/lesson/1185/using-cordova-native-plugins/)

hope that helps.

Vera

Solution

You may also want to take a look at this app:

https://www.outsystems.com/forge/component-discussions/2260/Social+Collaboration+Mobile

it doesn't have the feature you want, but it can work as a baseline to implement the new plugin.


Hi Vera,

Thank you for suggestion.