import multiple cordova plugins

import multiple cordova plugins

  

I need to import multiple cordova plugins in my app, and the documentation doesn't really explain how to do that.

I've tried the following json 


{
    "plugin":{
        "url":"https://github.com/wf9a5m75/plugin-socket.io.git"
    },
    "plugin":{
        "url":"https://github.com/OneSignal/OneSignal-Cordova-SDK.git"
    }
}

But to no avail, as the plugins stop being recognized. What's the intended way of doing this?

Solution

Hi,

The recommended approach, as described here, is to create a different application/module for each plugin.

Solution

I see. Even though it is kind of weird to create a completely empty module just to import a new plugin, it works