163
Views
3
Comments
Need configure two or more cordova plugin in single application
Question

Hi, 

I need to configure two or more cordova plugin in single application. If anybody has used it, please share me the example or syntax. 

Thanks,

Sachin




2020-07-21 19-28-50
Rajat Agrawal
Champion

Hello Sachin,

If you need to configure one cordovo plugin then use below syntax in  -

{
"plugin":
{
    "url": "https://github.com/abc.git"
}
}

Url will change according to your plugin.

Thanks~

Rajat Agrawal

2020-07-21 19-28-50
Rajat Agrawal
Champion

Hello,

If you need multiple plugin to be installed in application thenn use below syntax -

{

"plugin":

{

    "url": "https://github.com/abc.git"

},

"Plugin2":

{

    "url":"https://github.com/efg.git"

}


}


Its will work sachin.

Thanks~

Rajat Agrawal

2020-12-15 11-23-41
César Afonso
Staff

Hello Sachin.

As a best practice, you should try to keep one plugin per module. That way you'll have reusable components.

Example here .

Thanks

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