jbagg / QtZeroConf

Qt wrapper class for ZeroConf libraries across various platforms.
Other
69 stars 51 forks source link

No Services on iOS using test app #47

Closed dwebb72 closed 3 years ago

dwebb72 commented 3 years ago

I am using QT 5.15.2, Xcode 12.5.1 and iOS 14.7.1 and I get no services in the test_app. addService or removeService never fires.

jbagg commented 3 years ago

Hi, another use has reported the same iOS 14 issues as well. Currently I'm working from home because of covid-19, which I expect will be the case until I retire. I do not have access to a new enough mac to run a new enough xcode. I would suggest making a very simple c app that uses DNSServiceBrowse() and see if that works. This will tell us if the issue is in QZeroConf or if apple has busted or deprecated DNSServiceBrowse() c api.

dwebb72 commented 3 years ago

Thanks for your response. Unfortunately, I don't have the experience in C to create this app. I won't be able to spend the time to figure out how to do that. I am more than willing to test an app on my setup.

mzanetti commented 3 years ago

Did you guys request the local network permission as well as list the browsed service types in the info.plist file. It works fine for me on iOS with this Info.plist:

https://github.com/nymea/nymea-app/blob/master/packaging/ios/Info.plist.in#L40

dwebb72 commented 3 years ago

Did you guys request the local network permission as well as list the browsed service types in the info.plist file. It works fine for me on iOS with this Info.plist:

https://github.com/nymea/nymea-app/blob/master/packaging/ios/Info.plist.in#L40

I added that but the app doesn't ask for access so it doesn't change anything.

mzanetti commented 3 years ago

There must be a mistake in your info.plist then. It should pop up the question as soon as you create the QZeroConf object.

dwebb72 commented 3 years ago

@mzanetti you are correct. I didn't add the bonjour service types. For anyone else that is having this issue the video below explains it well. https://developer.apple.com/videos/play/wwdc2020/10110/

Thanks

jbagg commented 3 years ago

I will close this then,

jbagg commented 3 years ago

I plan to add the plist info to the readme.md as well.