---
title: WAPublishableService
framework: wifiaware
role: symbol
role_heading: Structure
path: wifiaware/wapublishableservice
---

# WAPublishableService

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

## Declaration

```swift
struct WAPublishableService
```

## Mentioned in

Adopting Wi-Fi Aware

## Overview

Overview You specify the services your app uses in Info.plist via a dictionary under the 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.

## Topics

### Selecting from your app’s publishable services

- [allServices](wifiaware/wapublishableservice/allservices.md)

### Checking a service name and ID

- [WAPublishableService.ID](wifiaware/wapublishableservice/id-swift.typealias.md)
- [id](wifiaware/wapublishableservice/id-swift.property.md)
- [name](wifiaware/wapublishableservice/name.md)

### Getting a string description

- [description](wifiaware/wapublishableservice/description.md)

## Relationships

### Conforms To

- [CustomStringConvertible](swift/customstringconvertible.md)
- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [Identifiable](swift/identifiable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [WAService](wifiaware/waservice.md)

## See Also

### Services to discover

- [WAService](wifiaware/waservice.md)
- [WASubscribableService](wifiaware/wasubscribableservice.md)
