Comments (6)
1.2.0 is released to pub.dev
from flutter_nsd.
Oh, it seems this has been fixed? 7caf86a#diff-d522d7763ab9c2fbd638d00d7042d518aa2f9a15e0a7ae3da32a9ca782b5baf9
But flutter package repository has old code!? Could you publish newer version there, please?
from flutter_nsd.
I haven't had the chance yet to test the latest code in master
so that's why I haven't published it. Have you tried cloning the repo and trying it locally to see if it fixes the issue? You can use a path
instead of a version in pubspec.yaml to try it out.
dependencies:
flutter_nsd:
path: /path/to/repo
from flutter_nsd.
Thanks, I tried it earlier quickly, but not comprehensively, just by replacing the plugin file locally in the flutter cache directory.
I didn't review the code properly but hopefully it works even when one of the resolving fails, so that the rest of the queue will be handled.
Great to know you can reference by repo, thanks!
from flutter_nsd.
I did a brief test of master
branch yesterday evening and found out that the discovered service is emitted twice in my case. Prior to #6 the same test resulted in one emitted service. I'll have to take a deeper look either in the following evenings or in the weekend before I publish 1.2.0 to pub.dev.
Have you noticed the same issue on your end?
from flutter_nsd.
No, I just re-tested, and everything works, without duplicates.
Sure, you get duplicates if you press start / stop multiple times. e.g. If you press the start, and a little bit later again, you might see multiple values, but that's because the example code adds new values to the services
.
In the listen callback, no duplicates, either.
Also if I register a new service after the app is already running, the listener finds it 👍🏼 .
I tested with Android Pixel 3a and also verified that iPhone works the same (both tested using usb-connection)
Of course, I have done this only a couple of times, so there could be some problem. Did you get a duplicate just by pressing start once and with a fresh build/run?
I ran flutter clean
and build having this dependency definition for flutter_nsd:
flutter_nsd:
git:
url: git://github.com/Nimrodda/flutter_nsd.git
from flutter_nsd.
Related Issues (20)
- Some windows hosts cannot resolve hostnames returned by MDNS HOT 4
- Extend NsdServiceInfo to include ipv4 and ipv6 HOT 7
- remove unused variable in lib/flutter_nsd.dart:83:17 HOT 2
- Notify when service is lost HOT 5
- NetServiceBrowser is deprecated on iOS/MacOS
- Not getting any output from example app even though run shows servers HOT 3
- Windows: TXT records are returned as string instead of UInt8List, causing failure
- Windows: txt records are sent as [key: key] instead of [key: value] HOT 1
- Stream<NsdServiceInfo> doesn't add service If msdn server hass service txt is added HOT 5
- NsdServiceInfo Class should have IP HOT 3
- java.lang.IllegalArgumentException: listener not registered HOT 3
- Any plans for Linux support? HOT 1
- The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher HOT 4
- stopDiscovery() stops, but generates an error HOT 2
- missing permission for some Android versions HOT 2
- Error on executing command 'flutter build windows' HOT 2
- stopDiscovery Not working giving below exception HOT 4
- Windows build is failing
- startDiscoveryFailed every time HOT 1
- MacOS and iOS not returning any hostAddress HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_nsd.