Hello everyone,


I'm trying to generate an iOS & Android app. I added a .zip file to the 'Resource' folder called 'cordova-background-geolocation-It.zip' Inside the .zip file there is a folder called 'cordova-background-geolocation-It' which contains the plugin data. 

Yet I receive an error saying 'Invalid Cordova plugin: cordova-background-geolocation-lt.'.

What am I doing wrong?


Thanks in advance!


//The iOS & Android generation log

[2019-05-06T14:03:51.350Z] [INFO] Start processing job request...
[2019-05-06T14:03:51.352Z] [INFO] Start generating application...
[2019-05-06T14:03:51.353Z] [INFO] Template version: 4.2.3
[2019-05-06T14:03:51.353Z] [INFO] Build features: cordovaNoFetch - true
[2019-05-06T14:03:51.353Z] [INFO] Build features: buildTimeout - 20
[2019-05-06T14:03:51.353Z] [INFO] Creating a temporary folder for the application...
[2019-05-06T14:03:51.353Z] [INFO] Creating the required directory structure for your cordova application...
[2019-05-06T14:03:56.628Z] [INFO] Getting application resources...
[2019-05-06T14:03:56.806Z] [INFO] Processing application resources...
[2019-05-06T14:03:56.952Z] [INFO] Generating application assets...
[2019-05-06T14:03:57.795Z] [INFO] Applying configurations in the config.xml file...
[2019-05-06T14:03:57.803Z] [INFO] Applying advanced configurations in the config.xml file...
[2019-05-06T14:03:57.803Z] [INFO] Applying custom application icons...
[2019-05-06T14:03:57.803Z] [INFO] Applying custom application splashscreens...
[2019-05-06T14:03:57.803Z] [INFO] Applying application preferences...
[2019-05-06T14:03:57.804Z] [INFO] Applying application accessList...
[2019-05-06T14:03:57.804Z] [INFO] Adding target platform...
[2019-05-06T14:04:32.310Z] [INFO] Applying plugins in the config.xml file...
[2019-05-06T14:04:32.311Z] [ERROR] /tmp/build/source/resources0/cordova-background-geolocation-lt is not a valid Cordova plugin
[2019-05-06T14:04:32.311Z] [ERROR] Build failed with the following error: Invalid Cordova plugin: cordova-background-geolocation-lt.
[2019-05-06T14:04:32.311Z] [INFO] Remove debug/release signing properties
[2019-05-06T14:04:32.312Z] [INFO] Zipping application source...
[2019-05-06T14:04:41.524Z] [INFO] Application was not successfully generated!
[2019-05-06T14:04:41.524Z] [INFO] Execution time: 50216ms


//Extensibility Configuration

{
    "resource": "cordova-background-geolocation-lt.zip",
    "plugin": {
        "resource": "cordova-background-geolocation-lt"
    }
}


Are you following the documentation here?

https://success.outsystems.com/Documentation/11/Extensibility_and_Integration/Mobile_Plugins/Using_Cordova_Plugins

If so, have you double-checked that the zip resource name and plugin resource name are correct, and the Deploy Action is set to Do Nothing?

Alternatively, have you tried forking the original Cordova plugin repo, and using that for the extensibility configuration?

Hello,

Thanks for your response.

I followed the documentation and the zip resource name & plugin resource name are correct. I even checked the plugin.xml for the plugin id which is also exact the same.

Deploy action set to 'Do Nothing'..

I haven't tried to fork it yet, will do & let you know!

Try to use the same with URL of Git directly instead going via zip approach