29
Views
1
Comments
[File Plugin] How can my custom plugin use one of OutSystems plugins as a dependency?
File Plugin
Forge asset by OutSystems

Hey all, hoping for some guidance on this one. I'm building an app in ODC and they do not have a mediaCapture plugin. So I ended up making my own. This plugin requires a <dependency id="cordova-plugin-file" version="^6.0.2" /> for its internal code to work. 


Inside my mobile application I also have the OutSystems File plugin as a dependency to get some file data from the uri and such. I've noticed that when I try using the GetFileDataFromUri client action provided that it freezes on this action and when I look in the console I get an error: ReferenceError: Can't find variable: CordovaFileReader

 So I have tried to match it to the current File plugin that Outsystems has which is <dependency id="cordova-plugin-file" version="^6.0.2-OS9" />. But this still doesn't work. Any ideas how I can reference the plugin while still getting functionality from my custom plugin and using outsystems own plugin?

UserImage.jpg
Minh Vu

It seems you have a problem with a Cordova plugin. This is not within OutSystems' scope. You can try importing your Cordova plugin into a Cordova project first to ensure it works properly before importing it into an OutSystems plugin.

Regarding your question, you cannot customize an OutSystems plugin directly. You can only clone it and then customize the cloned version. If you are referring to OutSystems code on GitHub, you can download and modify it, then zip the updated version (making sure it works as mentioned) before importing it into your OutSystems plugin.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.