https://github.com/nitnelavah/capacitor-pass-to-wallet
Allow to add .pkpass files to Apple wallet
https://github.com/nitnelavah/capacitor-pass-to-wallet
apple-wallet capacitor capacitor-plugin ionic ionic-framework passbook pkpass
Last synced: about 2 months ago
JSON representation
Allow to add .pkpass files to Apple wallet
- Host: GitHub
- URL: https://github.com/nitnelavah/capacitor-pass-to-wallet
- Owner: NitnelavAH
- License: mit
- Created: 2022-02-28T03:13:40.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-02-19T01:44:19.000Z (3 months ago)
- Last Synced: 2025-03-27T05:35:18.962Z (2 months ago)
- Topics: apple-wallet, capacitor, capacitor-plugin, ionic, ionic-framework, passbook, pkpass
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/capacitor-pass-to-wallet
- Size: 255 KB
- Stars: 18
- Watchers: 1
- Forks: 10
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# capacitor-pass-to-wallet
Allow to add .pkpass file to Apple Wallet
Buy me a coffee if you think this plugin was very useful for your project
https://paypal.me/nitnelavah?country.x=MX&locale.x=es_XC## Example
https://youtu.be/FUt2J385yCQ
https://github.com/NitnelavAH/IonicAdd2Wallet## Compatibility
| Capacitor Version | Plugin Version |
| ------------- | ------------- |
| 4.x | 1.x |
| 5.x | 2.x |
| 6.x | 3.x |
| 7.x | 4.x |## Install
```bash
npm install capacitor-pass-to-wallet
npx cap sync
```## API
* [`addToWallet(...)`](#addtowallet)
* [`addMultipleToWallet(...)`](#addmultipletowallet)### addToWallet(...)
```typescript
addToWallet(options: { base64: string; }) => Promise<{ message: string; }>
```| Param | Type |
| ------------- | -------------------------------- |
| **`options`** |{ base64: string; }
|**Returns:**
Promise<{ message: string; }>
--------------------
### addMultipleToWallet(...)
```typescript
addMultipleToWallet(options: { base64: string[]; }) => Promise<{ message: string; }>
```| Param | Type |
| ------------- | ---------------------------------- |
| **`options`** |{ base64: string[]; }
|**Returns:**
Promise<{ message: string; }>
--------------------