Skyost / Bonsoir

A Zeroconf library that allows you to discover network services and to broadcast your own. Based on Apple Bonjour and Android NSD.
http://bonsoir.skyost.eu/
Other
107 stars 49 forks source link

How can I run this on native android? #87

Closed danielgomezrico closed 6 months ago

danielgomezrico commented 7 months ago

Is your feature request related to a problem? Please describe. I have the server writen in flutter and it will run this but I want my clients to be android native and I cant find a way to run other libraries that connects to this one

Describe the solution you'd like Provide a native android implementation to use on native android, so they can talk with flutter server apps

Describe alternatives you've considered Im not sure

Additional context Thanks for this library

danielgomezrico commented 7 months ago

I was able to do it with this library: https://github.com/xiaogegexiao/rxbonjour

But still seems like a cool feature to have all platforms with this one, WDYT?

Skyost commented 7 months ago

You can already run this library on native Android (https://github.com/Skyost/Bonsoir/tree/master/packages/bonsoir_android).

danielgomezrico commented 7 months ago

How can I add it there?

Skyost commented 7 months ago

It's automatically included when you add Bonsoir to your project.

danielgomezrico commented 6 months ago

I mean, if I have a native android project that does not have any flutter involved, how can I add it?

Skyost commented 6 months ago

You can't, but this is a Flutter library.

danielgomezrico commented 6 months ago

I was wondering that it could be possible since the android implemenation is already done... that maybe one way to go is to move that into a separate place and reuse it from here, and then we can have a native android implementation and also a flutter implementation 🤔

Skyost commented 6 months ago

Yes it can be done, but why don't you directly use NSD if you're only targetting Android ?