WCSessionDelegate not being called in the Apple Wallet Extension With UI

Hi, we are implementing the push provisioning via the Apple Wallet Extension starting from the example at https://developer.apple.com/documentation/passkit/implementing-wallet-extensions.

To correctly manage the push provisioning on Apple Watch, specifically for a card tokenised in the iPhone but not in the Watch, we need to know if there is a connected Apple Watch to the iPhone.

We are using the following code from the Apple Wallet Extension example to detect whether there is a connected watch:

WCSession* session = [WCSession defaultSession];
session.delegate = delegate;
[session activateSession];

In the main target of the app, at the end of the activation the system correctly calls the delegate method:

session:activationDidCompleteWithState:error:

but we noticed it is not being called in the UI extension context (the one having NSExtensionPointIdentifier: com.apple.PassKit.issuer-provisioning.authorization).

We don't understand why the delegate is not being called in the UI extension, can you please help?

Thanks!

Steps to Reproduce:

  1. Start with a card not added in the Apple Wallet app
  2. Open the Apple Wallet app
  3. Click on add card
  4. Select the app to launch the Wallet Extension flow
  5. The Apple Wallet Extension with UI is on screen and invokes the activateSession method, the delegate method is not invoked and session.isPaired returns "no".

Xcode Version 16.2

macOS Version 15.6.1 (24G90)

Feedback ID FB20082564

Hi @sem.dangelo,

Thanks for the Feedback ID. However, the required information we asked for (including SEID, timestamps, and sysdiagnose logs) wasn't provided.

Please follow the steps outlined in the post below and reply here once your existing Feedback report has this information:

Gathering Required Information for Troubleshooting Apple Pay In-App Provisioning or In-App Verification Issues

<https://developer.apple.com/forums/thread/762893>

Once I have the requested information mentioned in the post above, I'll begin my investigation into this issue.

Thanks again,

Paris X Pinkney |  WWDR | DTS Engineer

WCSessionDelegate not being called in the Apple Wallet Extension With UI
 
 
Q