Page 1 of 1

Error adding a cordova plugin

Posted: Sun Mar 15, 2026 12:38 pm
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

Re: Error adding a cordova plugin

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

Code: Select all

Import "cordova plugin add cordova-plugin-zeroconf"
EndImport

Re: Error adding a cordova plugin

Posted: Tue Mar 17, 2026 12:43 pm
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