npm.io
5.1.0 • Published 2 weeks ago

capacitor-pass-to-wallet

Licence
MIT
Version
5.1.0
Deps
0
Size
24 kB
Vulns
0
Weekly
0
Stars
20

capacitor-pass-to-wallet

Allow to add .pkpass file to Apple Wallet

Example

https://youtu.be/FUt2J385yCQ https://github.com/NitnelavAH/IonicAdd2Wallet

Compatibility

Capacitor Version Plugin Version iOS dependency manager
4.x 1.x CocoaPods
5.x 2.x CocoaPods
6.x 3.x CocoaPods
7.x 4.x CocoaPods
8.x 5.0.x CocoaPods
8.x 5.1.x+ Swift Package Manager (SPM) or CocoaPods

Install

npm install capacitor-pass-to-wallet
npx cap sync
iOS
  • Requires iOS 15+ and Capacitor 8.
  • Starting with 5.1.0, the plugin supports both Swift Package Manager (SPM) projects (e.g. created with npx cap add ios --packagemanager SPM) and CocoaPods projects.
  • Version 5.0.x only supports CocoaPods. If your app uses SPM, upgrade to ^5.1.0.

API

addToWallet(...)
addToWallet(options: { base64: string; }) => Promise<{ message: string; }>
Param Type
options { base64: string; }

Returns: Promise<{ message: string; }>


addMultipleToWallet(...)
addMultipleToWallet(options: { base64: string[]; }) => Promise<{ message: string; }>
Param Type
options { base64: string[]; }

Returns: Promise<{ message: string; }>


Keywords