My application is from a bank that provides payment passes, and when I try to retrieve passes already enrolled in the wallet, it always returns empty. Is there something I need to configure for it to work? This is what I've tried, and it hasn't worked:
let pkPassLibrary = PKPassLibrary()
let paymentPasses =
pkPassLibrary.passes(of:.payment)
let pkPassLibrary = PKPassLibrary()
let paymentPasses: [PKSecureElementPass]=pkPassLibrary
.passes(of: .secureElement)
.compactMap { $0 as? PKSecureElementPass }
Hi @cundiano,
Please see my answer on the post below:
Unable to Retrieve Existing Card Status from Apple Wallet
https://developer.apple.com/forums/thread/826078?answerId=892671022#892671022
Cheers,
Paris X Pinkney | WWDR | DTS Engineer