apple_passkit 1.0.0 apple_passkit: ^1.0.0 copied to clipboard
Plugin to deal with PKPass files on iOS. You can check for availabililty and add them.
Apple PassKit #
This is a Flutter binding for Apple's PassKit.
This library allows you to add and and read PkPass
files.
How to use it #
final passKit = ApplePassKit();
// first check whether PassKit is available
bool isAvailable = await passKit.isPassLibraryAvailable();
// then check whether you can actually add passes
bool canAddPasses = await passKit.canAddPasses();
// when both of them are true, you can add a pass.
if(isAvailable && canAddPasses) {
await passKit.addPass(pass);
}
To view all methods, take a look at the API docs.
View your app's passes #
Setup your Xcode project as described in the documentation.
After that, use await ApplePassKit().passes()
to load your installed passes.