Comments (16)
That's a great discovery and thank you so much for sharing it here. I wonder if this is a bug in latest Xcode or something. It should be possible to add it via the UI as well 🤔
from flutter_nsd.
from flutter_nsd.
from flutter_nsd.
Have you tried with iOS version before 14?
…
The version number of my ios device is 14.7.1, and the model is iPhone6s Plus
from flutter_nsd.
Please try on iOS simulator that runs iOS lower than 14. For example iOS 11. The requirement to add these entries in info.plist is only for iOS 14+. If it works on older versions then the issue is in your info.plist configuration.
from flutter_nsd.
Please try on iOS simulator that runs iOS lower than 14. For example iOS 11. The requirement to add these entries in info.plist is only for iOS 14+. If it works on older versions then the issue is in your info.plist configuration.
I tried to run the overload ios Simulator today, and I can get the local network permission. According to what you said, the problem should be in my info.plist file. Could you please help me find out what the problem is?
from flutter_nsd.
from flutter_nsd.
Looks about right. Have you tried with the example app?
…
Yes, I created a Flutter project and tested this function separately. Could you please help me find out what the problem is?
The device is iPhone 6S Plus and the system is 14.7.1. After running, click "Start" and there is no prompt for local network authorization.
https://github.com/guojunlong/untitled_test_nsd.git
from flutter_nsd.
I did a quick test with the example app and indeed I don't see the prompt on my iPhone. Nevertheless, it shows that Local Network permission is granted under Settings->Privacy->Local Network. I'll have to investigate this. Please let me know if you find anything. Thanks!
from flutter_nsd.
I did a quick test with the example app and indeed I don't see the prompt on my iPhone. Nevertheless, it shows that Local Network permission is granted under Settings->Privacy->Local Network. I'll have to investigate this. Please let me know if you find anything. Thanks!
Yes, I found the problem, you were right before, it is the info.plist file, it is the problem of "NSBonjourServices", open the info.plist file as "Source Code" and find
“Bonjour Services", change the Key value to "NSBonjourServices", and then run again to get the prompt of local network permission, but why the project does not recognize "BonjourServices", I do not know. If you know the reason, please tell me. Thank you
from flutter_nsd.
Which version of Xcode are you using? Mine is version 13.0 (13A233). For now I updated the README.md with example XML from Info.plist. I filed a bug report to Apple .
from flutter_nsd.
13.0 (13A233).
I use the same Xcode as your version, also 13.0 (13A233).
from flutter_nsd.
Are you able to reproduce this issue? Now when I add Bonjour Services via the UI and then inspect the source code it seems to be correct everytime. Really weird.
from flutter_nsd.
I use Xcode (13.0 (13a233)), test model: iPhone 6S plus, mobile phone system: 14.7.1,
When I add the key value “Bonjour Services" and the corresponding value in the string "Bonjour Services" through “Property List" or “Source Code", I will not be able to obtain the local network permission. However, if I add the key "Bonjour Services" and the corresponding value in the string “NSBonjourServices", Everything is normal. The difference between the two adding methods is that when we check the source code of info.plist, the key values are "Bonjour Services" and “NSBonjourServices"
I just tried, and the problem still exists
from flutter_nsd.
Originally, everything was normal, but when I needed to integrate the project into plugin packages, I could not obtain the local network permission in the ios environment. This time, the modification of the Key value did not work, but it still works in the Android environment,
Do you have any ideas on how to solve this situation?
@Nimrodda
from flutter_nsd.
My assumption is that you're facing the same issue you faced before in Xcode. Make sure that the source code of Info.plist indeed has the right piece of code there with the correct domain etc.
I'm closing this issue since it's not an issue in the plugin.
from flutter_nsd.
Related Issues (20)
- 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
- getting NsdErrorCode.startDiscoveryFailed when hot restart app
- Services are not discovered on Android HOT 2
- On Android, the IP address is returned in the hostname field of NsdServiceInfo
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.