1
 Follower
4
 Likes

Plugin variables by application

Mobile
On our radar

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.

Created on 22 Jan 2018
Comments (2)

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

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
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
views
425
Followers
1