Skip to main content
wallet://pkpass presents the native wallet sheet pre-loaded with a .pkpass file hosted at any publicly reachable HTTPS URL. The user taps to confirm and the pass lands in their wallet. Your app receives a callback for every outcome.
The url parameter must be a publicly fetchable HTTPS URL. Data URLs (data:...), blob URLs (blob:...), and file:// paths are not accepted - the runtime fetches the resource over the network and will fail silently if it cannot reach it.

Installation


How it works

Register window.onWalletEvent before triggering the call. The callback fires once with the outcome - always define it first so no payload is missed.

Callback payloads

The callback receives a single object. status is always present. error is only set when status is "failed".

Handle each outcome

Branch on status and error to give the user accurate feedback.

Resources

NPM Package

despia-native