Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wibosco/ssdpdiscoverywithnetworkframework-example

An example project written in Swift on how to use SSDP to discover services using the Network framework from Apple 🔭
https://github.com/wibosco/ssdpdiscoverywithnetworkframework-example

ios multicast network ssdp swift

Last synced: about 2 months ago
JSON representation

An example project written in Swift on how to use SSDP to discover services using the Network framework from Apple 🔭

Awesome Lists containing this project

README

        

[![Build Status](https://github.com/wibosco/SSDPDiscoveryWithNetworkFramework-Example/actions/workflows/workflow.yml/badge.svg)](https://github.com/wibosco/SSDPDiscoveryWithNetworkFramework-Example/actions/workflows/workflow.yml)
Swift
Twitter: @wibosco

# SSDPDiscoveryWithNetworkFramework-Example

iOS 14 introduced a range of privacy features, one of which was to limit an app access to the local network. Especially if that app is attempting to discover what is on that network using multicasting (which is exactly what this example project is demonstrating). As such, in order to run this example on a device you will need to request that the `com.apple.developer.networking.multicast` entitlement is enabled from Apple (the example works on the simulator without the entitlement being enabled). See this [note](https://developer.apple.com/news/?id=0oi77447) for more details.

At the moment it looks like Network.framework does not support SSDPs communication pattern (of sending a multicast message and then receiving a unicast response), see https://developer.apple.com/forums/thread/680731 for more details.