swisspol / GCDWebServer

The #1 HTTP server for iOS, macOS & tvOS (also includes web based uploader & WebDAV server)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bonjour not working in iOS 14

dcosel86 opened this issue · comments

Hello,

My app attempts to start a WebServer using webServer?.start(withPort: 8080, bonjourName: "GCDWebServer")
However, in iOS14 webServerDidCompleteBonjourRegistration(_ server:) is never called. I think that is due to the fact that new keys need to be added to the info.plist.

I've added:
Privacy - Local Network Usage Description
Bonjour Services

I'm not sure what to add for the services though? Please help?

Thanks!
David

Hi David,

I had the same issue. Try the value
_http._tcp
for Bonjour services Item 0. This worked for me.

Best regards,
Michael