becvert / cordova-plugin-zeroconf

Cordova ZeroConf Plugin
MIT License
81 stars 57 forks source link

Service aren't added on iOS #30

Closed fttx closed 7 years ago

fttx commented 7 years ago

I use this library to announce my service on a Windows 10 machine.

If i use an Android phone it works, while if i use an iPhone the service is never listed as "added", and i get a "removed" message after several minutes.

image

If i use an macOS machine to announce the service it works on both Android and iOS

becvert commented 7 years ago

I can see that other services are added, so this plugin seems to work in part. Could you try another library to announce your service, just to make sure who's the culprit here.

fttx commented 7 years ago

I tried https://github.com/agnat/node_mdns and worked ¯_(ツ)_/¯

emcniece commented 7 years ago

@fttx how exactly did you include this in your project? You have this running on iOS and Android platforms? Are you using Ionic 1, 2 or 3?

fttx commented 7 years ago

Yes, i had it running on both iOS end Android, i don't remember exactly how i added it at that time, but for sure the ionic-native module wasn't available yet, see here: https://github.com/fttx/barcode-to-pc-app/tree/ff1f125a8881a4146fa1ac99f8cc367baeb3bdce

Now i'm using ionic 3 with the ionic-native module as explained in the docs and i'm using the node_mdns library to announce the service and everything seems to work fine

LabDeve commented 6 years ago

I've the same problem...