Hi, We are distributing pk pass files via a web browser. When a user taps Add in the system pass preview, the pass is added successfully, the preview is dismissed, and the user remains in the browser. From a user experience perspective, we would like to better guide users to their newly added pass in Apple Wallet. Is there a supported API, URL scheme, or documented mechanism that allows a web-based flow to transition the user to the Wallet app after a pass has been added? If direct app transitions are not supported in this scenario, what is the recommended best practice for helping users locate and open their newly added pass in Wallet?
Thank you for your guidance.
Hi @RishikantSri,
You wrote:
Is there a supported API, URL scheme, or documented mechanism that allows a web-based flow to transition the user to the Wallet app after a pass has been added? If direct app transitions are not supported in this scenario, what is the recommended best practice for helping users locate and open their newly added pass in Wallet?
No, there is no supported URL scheme, Javascript API, or web callback mechanism to programmatically transition a user from Safari to the Wallet app after a pass is added. Please submit a report via Feedback Assistant describing your use case. Once submitted, reply here with the Feedback ID so I may escalate internally.
However, you could incorporate the native iOS app if full control is required. The combination of the native iOS app using PKAddPassesViewController and Universal Links is a suitable workaround:
- it provides the
addPassesViewControllerDidFinishdelegate callback - then, you can programmatically open Wallet or take any in-app action, as needed
PKPassLibrarycan also verify the pass exists after provisioning
Cheers,
Paris X Pinkney | WWDR | DTS Engineer