Use nwbrowser for discovery on apple devices#50
Use nwbrowser for discovery on apple devices#50tim-alenus wants to merge 16 commits intoAppstractive:masterfrom
Conversation
# Conflicts: # sample/composeApp/build.gradle.kts # sample/iosApp/Podfile # sample/iosApp/Podfile.lock
|
Thank you very much for the PR! I have tested the implementation with the sample app, but found an issue with resolving service info: The services are found as expected. But when resolving, a connection is tried to the advertised port (8080), which fails because the sample app isn't actually running anything on that port and the whole resolve of the service fails (no info is updated in the UI). I can see that a connection is done here: https://github.com/tim-alenus/dns-sd-kt/blob/feature/nw-browser/lib/src/swift/nativeBridge/NWBrowserBridge.swift#L257 |
…nnection to determine host IP fails
…esolution" to "resolve"
|
Hi @aschulz90 However the behavior on iOS using To handle this case I have added a timeout to this connection of 5 seconds. When the timeout occurs a |
#32
This pull requests adds a swift bridge to be able to use the nwbrowser object for discovery. NSNetService is deprecated and should not be used anymore. The bridge code is accessible through interop using SMP for KMP: https://spmforkmp.eu/
We are actively using this code in a (soon to be in production) KMP app.