PKPassLibrary passes() is giving empty response

Hi , I have successfully provisioned my card into Apple wallet. nd after that I am calling passes() API of PKPassLibrary class , getting empty data.  let passLibary = PKPassLibrary() let pass = passLibary.passes() // giving empty response.  I tried with below API as well, this is giving empty response.  let passListItems = passLibary.passes(of: .secureElement).Pls guide me where I am missing something.

  • I am also having this issue, but I don't know how to solve it yet.

Add a Comment

Replies

The PKPassLibrary.passes() method only returns passes your app is entitled to see. Are you the issuer of the card provisioned into Wallet? If not, then you won't be able to obtain it in your app.

Have you found a solution for this Issue? My app is the issuer of the card provisioned into wallet and I cheked the entitlement with

% security cms -D -i iOSTeamProfile.mobileprovision | xmllint --xpath "/plist/dict/key[text()='Entitlements']/following-sibling::dict[position()=1]" -

And the app ID and bundle matches my app data. Any ideas of what could be wrong?

Hi. Did anyone find a solution to this issue? I'm also developing a banking app. All PNO Pass Metadata seems configured correctly. My entitlements also seems configured correctly but for some reason the passes() always return an empty list even if I have the bank card added to the wallet. Did you GGutierrez or anyone find a solution to this? Should this method work with debug build or only production build? I've tested the TestFlight build but got an empty list as well.

  • Turns out our bank had the wrong configuration for "associatedApplicationIdentifiers". After correct setup, we can see all passes entitled to our app. The card had to be added again to the wallet after changes in configuration.

Add a Comment