Not able to one click publish app while using cordova plugin

I am trying to publish the App which is done in Outsystems, I am able to pubish the Simple Application, but When I am trying to include the plugin in in the module it is throwing the exception Communication error 

 I have done the integration of plugin as follows 

A plugin from a ZIP file:

{
    "resource": "<my-plugin.zip>",
    "plugin": {
        "resource": "my-plugin"
    }
}

The file is placed in Resources folder of the Data tab, in the file my-plugin.zip. Select Do Nothing in the Deploy Action attribute of the Resource property. The location of plugin.xml within the zip file is my-plugin\plugin.xml. In the plugin.xml file, there is id="my-plugin" attribute within the root pluginelement.



at end I am getting the below error




Can Anyone help me on this 


Hi Anbarasu,

Could you share how do you define your extensibility configuration?
Also, if it's possible could you attach your plugin into the post.

With best regards,
F.Karatay

Hello Karatay ,


Ferhat Karatay wrote:

Hi Anbarasu,

Could you share how do you define your extensibility configuration?
Also, if it's possible could you attach your plugin into the post.

With best regards,
F.Karatay


Please Find my extensibility configuration below

{
    "resource": "SampleWidgetPlugin.zip",
    "plugin": {
        "resource": "cordova.plugin.sample.widget"
    }
}


where my plugin.xml

<?xml version='1.0' encoding='utf-8'?>
<plugin id="cordova.plugin.sample.widget" version="1.1.0"
    xmlns="http://apache.org/cordova/ns/plugins/1.0"
    xmlns:android="http://schemas.android.com/apk/res/android">
    <name>SampleWidgetPlugin</name>
    <js-module name="SampleWidgetPlugin" src="www/SampleWidgetPlugin.js">
        <clobbers target="cordova.plugins.SampleWidgetPlugin" />
    </js-module>
    <platform name="android">
        <config-file parent="/*" target="res/xml/config.xml">
            <feature name="SampleWidgetPlugin">
                <param name="android-package" value="cordova.plugin.sample.widget.SampleWidgetPlugin" />
            </feature>
        </config-file>
        <source-file src="libs/widget.aar" target-dir="libs" framework="true" />
        <config-file parent="/*" target="AndroidManifest.xml" />
        <source-file src="src/android/SampleWidgetPlugin.java" target-dir="src/cordova/plugin/sample/widget" />
        <framework src="src/android/build-extras.gradle" custom="true" type="gradleReference" />
    </platform>
    <platform name="ios">
        <config-file parent="/*" target="config.xml">
            <feature name="SampleWidgetPlugin">
                <param name="ios-package" value="SampleWidgetPlugin" />
            </feature>
        </config-file>
        <source-file src="src/ios/SampleWidgetPlugin.swift" />
        <framework src="libs/sampleWidget.framework" embed="true" custom="true" />
        <hook type="after_build" src="hooks/add_embedded.js" />
       
        <!-- Configure Info.plist -->
        <config-file target="*-Info.plist" parent="NSCameraUsageDescription">
            <string>sample  requires access to Camera</string>
        </config-file>
       
        <config-file target="*-Info.plist" parent="NSFaceIDUsageDescription">
            <string>sample  requires access to Face ID</string>
        </config-file>
       
        <config-file target="*-Info.plist" parent="NSLocationAlwaysUsageDescription">
            <string>sample  requires access to Location</string>
        </config-file>
       
        <config-file target="*-Info.plist" parent="NSLocationWhenInUseUsageDescription">
            <string>sample  requires access to Location</string>
        </config-file>
       
        <config-file target="*-Info.plist" parent="NSLocationAlwaysAndWhenInUseUsageDescription">
            <string>sample  requires access to Location</string>
        </config-file>
    </platform>
   
    <info>Plugin installed successfully</info>
</plugin>

This is the one I am trying to use the above but the plugin is not getting linked from resources

Anbarasu Theresnathan wrote:

Hello Karatay ,


Ferhat Karatay wrote:

Hi Anbarasu,

Could you share how do you define your extensibility configuration?
Also, if it's possible could you attach your plugin into the post.

With best regards,
F.Karatay


Please Find my extensibility configuration below

{
    "resource": "SampleWidgetPlugin.zip",
    "plugin": {
        "resource": "cordova.plugin.sample.widget"
    }
}


where my plugin.xml

<?xml version='1.0' encoding='utf-8'?>
<plugin id="cordova.plugin.sample.widget" version="1.1.0"
    xmlns="http://apache.org/cordova/ns/plugins/1.0"
    xmlns:android="http://schemas.android.com/apk/res/android">
    <name>SampleWidgetPlugin</name>
    <js-module name="SampleWidgetPlugin" src="www/SampleWidgetPlugin.js">
        <clobbers target="cordova.plugins.SampleWidgetPlugin" />
    </js-module>
    <platform name="android">
        <config-file parent="/*" target="res/xml/config.xml">
            <feature name="SampleWidgetPlugin">
                <param name="android-package" value="cordova.plugin.sample.widget.SampleWidgetPlugin" />
            </feature>
        </config-file>
        <source-file src="libs/widget.aar" target-dir="libs" framework="true" />
        <config-file parent="/*" target="AndroidManifest.xml" />
        <source-file src="src/android/SampleWidgetPlugin.java" target-dir="src/cordova/plugin/sample/widget" />
        <framework src="src/android/build-extras.gradle" custom="true" type="gradleReference" />
    </platform>
    <platform name="ios">
        <config-file parent="/*" target="config.xml">
            <feature name="SampleWidgetPlugin">
                <param name="ios-package" value="SampleWidgetPlugin" />
            </feature>
        </config-file>
        <source-file src="src/ios/SampleWidgetPlugin.swift" />
        <framework src="libs/sampleWidget.framework" embed="true" custom="true" />
        <hook type="after_build" src="hooks/add_embedded.js" />
       
        <!-- Configure Info.plist -->
        <config-file target="*-Info.plist" parent="NSCameraUsageDescription">
            <string>sample  requires access to Camera</string>
        </config-file>
       
        <config-file target="*-Info.plist" parent="NSFaceIDUsageDescription">
            <string>sample  requires access to Face ID</string>
        </config-file>
       
        <config-file target="*-Info.plist" parent="NSLocationAlwaysUsageDescription">
            <string>sample  requires access to Location</string>
        </config-file>
       
        <config-file target="*-Info.plist" parent="NSLocationWhenInUseUsageDescription">
            <string>sample  requires access to Location</string>
        </config-file>
       
        <config-file target="*-Info.plist" parent="NSLocationAlwaysAndWhenInUseUsageDescription">
            <string>sample  requires access to Location</string>
        </config-file>
    </platform>
   
    <info>Plugin installed successfully</info>
</plugin>

This is the one I am trying to use the above but the plugin is not getting linked from resources


Hi Anbarasu,

Could you please upload your plugin zip file? (SampleWidgetPlugin.zip)

With best regards,
F.Karatay