Check if plugin is loaded

I am using many plugins in my application, and I realised that sometimes, when I make changes, my team not necessarily run prepare, or I forgot to save the plugins in the config.xml, so we build an app without all of the plugins.

I want to create a page (for moderators), that lists all of the plugins, and their status: Loaded/Not Loaded.

I have a list of all plugin names (cordova-plugin-x) and I can manually inject all of the plugins if I have to.

How can I check if a plugin is loaded or not?

2 Likes