<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WiFiAware",
  "identifier" : "/documentation/WiFiAware/WAPublishableService",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Wi-Fi Aware"
    ],
    "preciseIdentifier" : "s:9WiFiAware20WAPublishableServiceV"
  },
  "title" : "WAPublishableService"
}
-->

# WAPublishableService

A service, hosted by your app, that remote devices can connect to.

```
struct WAPublishableService
```

## Overview

You specify the services your app uses in `Info.plist` via a dictionary under the <doc://com.apple.documentation/documentation/BundleResources/Information-Property-List/WiFiAwareServices> key:

- Each *key* in that dictionary is the full service name of a service, and the *value* is a dictionary of configuration properties for that service.
- If the configuration dictionary contains the `Publishable` key, the system creates a `WAPublishableService` is created for that service and makes it available in [`allServices`](/documentation/WiFiAware/WAPublishableService/allServices).

## Topics

### Selecting from your app’s publishable services

[`allServices`](/documentation/WiFiAware/WAPublishableService/allServices)

A dictionary of all publishable services declared by your app, indexed by service name.

### Checking a service name and ID

[`ID`](/documentation/WiFiAware/WAPublishableService/ID-swift.typealias)

The type of value that uniquely identifies the service.

[`id`](/documentation/WiFiAware/WAPublishableService/id-swift.property)

A stable ID that can be used to identify this publishable service.

[`name`](/documentation/WiFiAware/WAPublishableService/name)

The full name of the service, as sent over the air.

### Getting a string description

[`description`](/documentation/WiFiAware/WAPublishableService/description)

A description of the service.

### Creating a service

### Encoding

### Comparing results

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`WAService`](/documentation/WiFiAware/WAService)

[`Decodable`](/documentation/Swift/Decodable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Hashable`](/documentation/Swift/Hashable)

[`Encodable`](/documentation/Swift/Encodable)

[`Identifiable`](/documentation/Swift/Identifiable)

[`Sendable`](/documentation/Swift/Sendable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)