David Sousa
Champion
Plugin variables by application
588
Views
3
Comments
Implemented
Mobile

Would be great to be able to set plugin variables in the applications that use those plugins, instead of having hardcoded variables on the plugin eSpace.

Merged this idea with 'Make parameters configurable in outsystems components that use cordova plugins' (created on 12 Aug 2019 12:53:40 by José Torrão)

Hey guys,


So the other day, I was using the camera plugin, and I had to manually add a line of code to the plugin. In there a lot of things were hard coded:

quality: 60,  destinationType: Camera.DestinationType.DATA_URL,
encodingType: Camera.EncodingType.JPEG, targetWidth: 600,
targetHeight: 600, correctOrientation: true

And the line I had to add:

sourceType: Camera.PictureSourceType.PHOTOLIBRARY,

I think those should be configurable with input fields and that, by default, all components that use cordova plugins (at least that come from outsystems) should be configurable with inputs.

Best Regards,
Jose Torrao




This comment was:
- originally posted on idea 'Make parameters configurable in outsystems components that use cordova plugins' (created on 12 Aug 2019 by José Torrão)
- merged to idea 'Plugin variables by application' on 14 Aug 2019 17:15:34 by Magda Pereira

Hi David, José,

Thank you for your input. We've been changing the way our supported plugins work and we are putting the focus on increasingly configurable plugins. We are doing this on each new update and/or new plugins. You can, for instance, check the newer versions of the Camera and the Barcode plugin and you'll see that many parameters like the ones José mentioned are now configurable. 


Thank you for your feedback, it was important for us to justify this new approach.

Best regards,

Carlos Silva (mobile team)

Changed the status to
Implemented
on 01 Aug 2021

Updates of currently supported plugins and new supported plugins are making an effort to be more configurable (ex. see newer versions of the Camera and the Barcode plugin)