I am working on a project where it needs to implement wallet extension to add cards from Apple wallet. I am stuck in the flow where app is not getting displayed in wallet while trying to add. Any sample implementation available? Any help would be much appreciated
Apple Wallet Issuer Extension
Hey, did you managed to solve it? I have also created non-ui and ui extension, but i am stuck where the app is not getting displayed in the apple wallet. Is there any tutorial that I could follow?
I managed to make it work. There are few key points to follow:
- Make sure that you have correct values in info.plist in Non-UI and UI extension (NSExtensionPointIdentifier, NSExtensionPrincipalClass)
- Make sure you have com.apple.developer.payment-pass-provisioning entitlement for your app and both extensions
- Make sure that your function
func status(completion: @escaping (PKIssuerProvisioningExtensionStatus) -> Void)
inside Non-UI extension executes in under 100ms. The extension is not displayed to the user in Wallet if this criteria is not met. - Make sure that in your function
func status(completion: @escaping (PKIssuerProvisioningExtensionStatus) -> Void)
the objectPKIssuerProvisioningExtensionStatus
hasremotePassEntriesAvailable
orpassEntriesAvailable
set to true (if there are no cards to add to the wallet, your app won't be displayed).
For the purpose of trying it out inside your Non-UI extension just implement status
function like that:
override func status(completion: @escaping (PKIssuerProvisioningExtensionStatus) -> Void) {
let status = PKIssuerProvisioningExtensionStatus()
status.remotePassEntriesAvailable = true
status.passEntriesAvailable = true
status.requiresAuthentication = false
completion(status)
}
I hope it helps :)
Dear @131232132132211233221 ,
Even i have stuck with many of queries while implementing wallet extension as below.
- Both NonUIExtension and UIExtension required or not?
- For NonUIExtension and UIExtension "com.apple.developer.payment-pass-provisioning" entitlement key is required or not?
- For NonUIExtension and UIExtension provision profile required for both?
- For NonUIExtension and UIExtension (App group and Wallet) capabilities required or not?
Kindly share any sample code or project to resolve my issues.
Make sure your extension's iOS Minimum Deployment version is lower than your physical devices' iOS version, otherwise the extension is being ignored by the system. Happened to me.