Error adding a cordova plugin

Just starting out? Need help? Post your questions and find answers here.
User avatar
RBart
Posts: 25
Joined: Fri Jul 25, 2025 9:13 am
Location: Belgium

Error adding a cordova plugin

Post by RBart »

Hi

In the documentation I found that 'import' will add a cordova plugin.

Code: Select all

;allow mDNS on android
Import "cordova plugin add @ionic-native/zeroconf"
EndImport
But I tryed serveral plugins and get an error:
Cannot find plugin.xml for plugin "zeroconf". Please try adding it again.

Is this just maybe the plugin is not available or are there other steps neccessary to add a plugin to the project?

Thanks in advance
Rudi
💻 Exploring the world of SpiderBasic :o
Fred
Site Admin
Posts: 1864
Joined: Mon Feb 24, 2014 10:51 am

Re: Error adding a cordova plugin

Post by Fred »

Did you tried like this ?

Code: Select all

Import "cordova plugin add cordova-plugin-zeroconf"
EndImport
User avatar
RBart
Posts: 25
Joined: Fri Jul 25, 2025 9:13 am
Location: Belgium

Re: Error adding a cordova plugin

Post by RBart »

Fred wrote: Mon Mar 16, 2026 3:01 pm Did you tried like this ?

Code: Select all

Import "cordova plugin add cordova-plugin-zeroconf"
EndImport
Yes!
Thanks again Fred

This did the trick!

And it's working on the Andoid tablet too.

With msdn on the rasberry whith the Mysql server should be plug and play in every LAN. If the Android tablet is on the same network it should detect it. Good solution to share data between different applications and devices whitin any network. Need the do some more tests, but looks fine.

Greetings
Rudi
💻 Exploring the world of SpiderBasic :o
Post Reply