I am developing an ionic application, wherein, I need to show a card (sort of like, a credit card with a series). Now to cater to iOS users, i want to add the following button below the card:
Clicking on this button must add the respective card/pass to the Apple Wallet (previously, Apple Passbook).
I can create the card/pass using https://ionicframework.com/docs/components/#cards, with custom CSS.
But does Ionic provide a way to add functionality to the button?
On some research, I could find these two Cordova plugins:
- https://github.com/passslot/cordova-plugin-passbook (to add pass to native Wallet)
- https://github.com/samkelleher/cordova-plugin-applepay (to integrate Apple Pay services)
Is this the correct way to do this in Ionic? Has anybody implemented this using a different logic/ plugins? Basically, any implementation of PassKit APIs in Ionic?
Any help appreciated.