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.
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: trueAnd 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
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)
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)