One Logo Pool Ball
WiFiAware · IOS API REFERENCE

WAService

protocol · iOS 26.0+ · SDK 27.1

protocol WAService : CustomStringConvertible, Decodable, Encodable, Hashable, Identifiable, Sendable

A protocol that defines a service that a device can publish or subscribe to. A service represents a specific function or use case that's performed over Wi-Fi Aware. Services are specific functionality and protocols that your app can publish or subscribe to on other devices. Services are identified by a service name string that follows the rules in [RFC 6763](https://datatracker.ietf.org/doc/html/rfc6763#section-4.1.2) and [RFC 6335](https://datatracker.ietf.org/doc/html/rfc6335#section-5.1). For a service name of `example-service`, the full service name encoded in the `Info.plist` and sent over the air is either `_example-service._tcp` if using the TCP protocol or `_example-service._udp` if using any other protocol. You must register your app with a unique name in the [IANA service name registry](https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xml) to avoid conflicts with other apps and devices. If you have an invalid service name in the `Info.plist`, your app crashes.

Members (0)

This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.

Skipped declarations

No declarations were skipped in this snapshot.

All WiFiAware types →