apple_passkit
1.3.1, released a year ago by uekoetter.dev
Flutter plugin to check availability, read, and add Apple Wallet PKPass files on iOS.
WASM-ready
What it does
This package provides a Flutter binding for Apple's PassKit. It allows applications to check if PassKit and pass adding are available on the device, add PkPass files to the user's Apple Wallet, and read available PkPass files already installed in the wallet.
AI-written summary of version 1.3.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to integrate Apple Wallet and PassKit functionality specifically into an iOS Flutter application.
- You want to allow users to add PKPass files (such as boarding passes or loyalty cards) to their wallet.
- You need to read existing PKPass files available in the user's wallet.
Skip it when
- You need cross-platform support for handling PassKit files on platforms other than iOS or macOS.
- You are dealing with crypto web3 wallets instead of Apple Wallet.
Strengths
- Direct binding to Apple's native PassKit framework.
- Enables checking pass library availability and permissions prior to adding passes.
- Supports reading installed passes directly from the wallet.
Weaknesses
- Limited to iOS/macOS and not cross-platform.
- Fails to give specific error messages in some failure scenarios (suggests falling back to 'passkit' package for more details).
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 0
Requires setting up your Xcode project according to Apple's PassKit documentation to properly manage wallet passes.
final passKit = ApplePassKit();
bool isAvailable = await passKit.isPassLibraryAvailable();
bool canAddPasses = await passKit.canAddPasses();
if(isAvailable && canAddPasses) {
await passKit.addPass(pass);
}Alternatives
Packages that do the same job and could replace apple_passkit.