---
title: "addPass(_:)"
framework: proximityreader
role: symbol
role_heading: Instance Method
path: "proximityreader/customerengagementsession/addpass(_:)"
---

# addPass(_:)

Asks the customer to confirm adding a Pass to Wallet.

## Declaration

```swift
final func addPass(_ pass: Data) async throws -> Bool
```

## Parameters

- `pass`: Properly created .pkpass data to be added to Wallet. The passTypeIdentifier of the pass must be one of the identifiers in the doc://com.apple.ProximityReader/documentation/ProximityReader/CustomerEngagementSession/Configuration-swift.struct/passTypeIdentifiers.

## Mentioned in

Adding support for Tap to Share to your app

## Return Value

Return Value true if the pass is added to Wallet successfully or the same pass already exists; false if the customer declines.

## Discussion

Discussion note: CustomerEngagementSession.Error if the request fails.
